From 12770a1fa125260b802ae4cb43a3cb58e1eb6080 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:05:09 +0100 Subject: [PATCH] fix tests --- cmd/evm/internal/t8ntool/execution.go | 2 +- tests/state_test_util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/evm/internal/t8ntool/execution.go b/cmd/evm/internal/t8ntool/execution.go index 5f39794a18..afe2e6b315 100644 --- a/cmd/evm/internal/t8ntool/execution.go +++ b/cmd/evm/internal/t8ntool/execution.go @@ -122,7 +122,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig, // Capture errors for BLOCKHASH operation, if we haven't been supplied the // required blockhashes var hashError error - getHash := func(num uint64) common.Hash { + getHash := func(num uint64, _ vm.StateDB, _ bool) common.Hash { if pre.Env.BlockHashes == nil { hashError = fmt.Errorf("getHash(%d) invoked, no blockhashes provided", num) return common.Hash{} diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 919730089a..f8c2fa2e0e 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -474,6 +474,6 @@ func rlpHash(x interface{}) (h common.Hash) { return h } -func vmTestBlockHash(n uint64) common.Hash { +func vmTestBlockHash(n uint64, _ vm.StateDB, _ bool) common.Hash { return common.BytesToHash(crypto.Keccak256([]byte(big.NewInt(int64(n)).String()))) }