Skip to content

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Sep 23, 2024
1 parent b0a5536 commit 4d555ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/interpreter/src/instructions/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ pub fn sstore<H: Host + ?Sized, SPEC: Spec>(interpreter: &mut Interpreter, host:
interpreter.instruction_result = InstructionResult::ReentrancySentryOOG;
return;
}
gas::sstore_cost(SPEC::SPEC_ID, &state_load.data, state_load.is_cold);
gas!(
interpreter,
gas::sstore_cost(SPEC::SPEC_ID, &state_load.data, state_load.is_cold)
);
refund!(
interpreter,
gas::sstore_refund(SPEC::SPEC_ID, &state_load.data)
Expand Down

0 comments on commit 4d555ea

Please sign in to comment.