From 4d555eaeb28c65d0ccc5b79e3b501cb123156edb Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 24 Sep 2024 06:29:50 +0800 Subject: [PATCH] fix testcase Signed-off-by: jsvisa --- crates/interpreter/src/instructions/host.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/interpreter/src/instructions/host.rs b/crates/interpreter/src/instructions/host.rs index 3b49ee29a4..adf9c5be95 100644 --- a/crates/interpreter/src/instructions/host.rs +++ b/crates/interpreter/src/instructions/host.rs @@ -142,7 +142,10 @@ pub fn sstore(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)