Skip to content

Commit

Permalink
core/vm, eth/tracers: use pointer receiver for GetRefund (#18018)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyLin authored and fjl committed Nov 8, 2018
1 parent 212bf26 commit a5dc087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/vm/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type dummyStatedb struct {
state.StateDB
}

func (dummyStatedb) GetRefund() uint64 { return 1337 }
func (*dummyStatedb) GetRefund() uint64 { return 1337 }

func TestStoreCapture(t *testing.T) {
var (
Expand Down
2 changes: 1 addition & 1 deletion eth/tracers/tracer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type dummyStatedb struct {
state.StateDB
}

func (dummyStatedb) GetRefund() uint64 { return 1337 }
func (*dummyStatedb) GetRefund() uint64 { return 1337 }

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

0 comments on commit a5dc087

Please sign in to comment.