Skip to content

Commit a710e09

Browse files
committed
fix dummyStatedb
1 parent 864512c commit a710e09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eth/tracers/logger/logger_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"github.com/ava-labs/libevm/common"
2626
"github.com/ava-labs/libevm/core/state"
2727
"github.com/ava-labs/libevm/core/vm"
28+
"github.com/ava-labs/libevm/libevm/stateconf"
2829
"github.com/ava-labs/libevm/params"
2930
"github.com/holiman/uint256"
3031
)
@@ -49,9 +50,9 @@ type dummyStatedb struct {
4950
state.StateDB
5051
}
5152

52-
func (*dummyStatedb) GetRefund() uint64 { return 1337 }
53-
func (*dummyStatedb) GetState(_ common.Address, _ common.Hash) common.Hash { return common.Hash{} }
54-
func (*dummyStatedb) SetState(_ common.Address, _ common.Hash, _ common.Hash) {}
53+
func (*dummyStatedb) GetRefund() uint64 { return 1337 }
54+
func (*dummyStatedb) GetState(_ common.Address, _ common.Hash, _ ...stateconf.StateDBStateOption) common.Hash { return common.Hash{} }
55+
func (*dummyStatedb) SetState(_ common.Address, _ common.Hash, _ common.Hash, _ ...stateconf.StateDBStateOption) {}
5556

5657
func TestStoreCapture(t *testing.T) {
5758
var (

0 commit comments

Comments
 (0)