core/vm, eth/tracers: use pointer receiver for GetRefund (#18018)

release/1.8
Corey Lin 6 years ago committed by Felix Lange
parent 212bf266c5
commit a5dc087845
  1. 2
      core/vm/logger_test.go
  2. 2
      eth/tracers/tracer_test.go

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

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

Loading…
Cancel
Save