Skip to content

Commit a5dc087

Browse files
CoreyLinfjl
authored andcommitted
core/vm, eth/tracers: use pointer receiver for GetRefund (#18018)
1 parent 212bf26 commit a5dc087

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎core/vm/logger_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type dummyStatedb struct {
4646
state.StateDB
4747
}
4848

49-
func (dummyStatedb) GetRefund() uint64 { return 1337 }
49+
func (*dummyStatedb) GetRefund() uint64 { return 1337 }
5050

5151
func TestStoreCapture(t *testing.T) {
5252
var (

‎eth/tracers/tracer_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type dummyStatedb struct {
4848
state.StateDB
4949
}
5050

51-
func (dummyStatedb) GetRefund() uint64 { return 1337 }
51+
func (*dummyStatedb) GetRefund() uint64 { return 1337 }
5252

5353
func runTrace(tracer *Tracer) (json.RawMessage, error) {
5454
env := vm.NewEVM(vm.Context{BlockNumber: big.NewInt(1)}, &dummyStatedb{}, params.TestChainConfig, vm.Config{Debug: true, Tracer: tracer})

0 commit comments

Comments
 (0)