diff options
author | Martin Holst Swende <martin@swende.se> | 2017-08-23 19:37:18 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-23 19:37:18 +0800 |
commit | 286ec5df40d3707a7a2c98d49c8d324372ed29c2 (patch) | |
tree | 1cb14e2519516edde4beba39d8524f5cab5b34ee /internal | |
parent | f7e39a772497f96253071da873d7d9923a3ed719 (diff) | |
download | dexon-286ec5df40d3707a7a2c98d49c8d324372ed29c2.tar.gz dexon-286ec5df40d3707a7a2c98d49c8d324372ed29c2.tar.zst dexon-286ec5df40d3707a7a2c98d49c8d324372ed29c2.zip |
cmd/evm, core/vm, internal/ethapi: Show error when exiting (#14985)
* cmd/evm, core/vm, internal/ethapi: Add 'err' to tracer interface CaptureEnd
* cmd/evm: fix nullpointer when there is no error
Diffstat (limited to 'internal')
-rw-r--r-- | internal/ethapi/tracer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go index fc66839ea..051626527 100644 --- a/internal/ethapi/tracer.go +++ b/internal/ethapi/tracer.go @@ -346,7 +346,7 @@ func (jst *JavascriptTracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, } // CaptureEnd is called after the call finishes -func (jst *JavascriptTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration) error { +func (jst *JavascriptTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) error { //TODO! @Arachnid please figure out of there's anything we can use this method for return nil } |