From a5dc087845c90dad126bf203640ac6e876d7bbcb Mon Sep 17 00:00:00 2001 From: Corey Lin <514971757@qq.com> Date: Thu, 8 Nov 2018 20:07:15 +0800 Subject: [PATCH] core/vm, eth/tracers: use pointer receiver for GetRefund (#18018) --- core/vm/logger_test.go | 2 +- eth/tracers/tracer_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/logger_test.go b/core/vm/logger_test.go index cba7c7a0e..2ea7535a7 100644 --- a/core/vm/logger_test.go +++ b/core/vm/logger_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 ( diff --git a/eth/tracers/tracer_test.go b/eth/tracers/tracer_test.go index 52f29c83f..a45a12115 100644 --- a/eth/tracers/tracer_test.go +++ b/eth/tracers/tracer_test.go @@ -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})