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

This commit is contained in:
Corey Lin 2018-11-08 20:07:15 +08:00 committed by Felix Lange
parent 212bf266c5
commit a5dc087845
2 changed files with 2 additions and 2 deletions

View File

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

View File

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