From de0b3f6396e893e6e2cda63838b1e29a07932595 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:35:26 +0200 Subject: [PATCH] fix failing unit test Signed-off-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com> --- core/state/access_events_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/access_events_test.go b/core/state/access_events_test.go index e31fa76256..10630b3181 100644 --- a/core/state/access_events_test.go +++ b/core/state/access_events_test.go @@ -101,7 +101,7 @@ func TestContractCreateInitGas(t *testing.T) { // Check cold read cost, without a value gas := ae.ContractCreateInitGas(testAddr) - if want := params.WitnessBranchWriteCost + params.WitnessBranchReadCost + params.WitnessChunkWriteCost + params.WitnessChunkReadCost; gas != want { + if want := params.WitnessBranchWriteCost + params.WitnessBranchReadCost + 2*params.WitnessChunkWriteCost + 2*params.WitnessChunkReadCost; gas != want { t.Fatalf("incorrect gas computed, got %d, want %d", gas, want) }