fix tests

This commit is contained in:
Guillaume Ballet 2024-01-22 13:05:09 +01:00
parent 6164aadba8
commit 12770a1fa1
2 changed files with 2 additions and 2 deletions

View file

@ -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{}

View file

@ -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())))
}