From c8e3e836411467afe36976254a7256a66a57ac8b Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Mon, 18 Oct 2021 14:48:51 -0700 Subject: [PATCH 1/2] Updated wrappers to reflect changes to tracer functions --- plugins/wrappers/wrappers.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/wrappers/wrappers.go b/plugins/wrappers/wrappers.go index 5b9c12661..f799ad03b 100644 --- a/plugins/wrappers/wrappers.go +++ b/plugins/wrappers/wrappers.go @@ -101,6 +101,12 @@ func (w WrappedTracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, c func (w WrappedTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error) { w.r.CaptureEnd(output, gasUsed, t, err) } +func (w WrappedTracer) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) { + w.r.CaptureEnter(core.OpCode(typ), core.Address(from), core.Address(to), input, gas, value) +} +func (w WrappedTracer) CaptureExit(output []byte, gasUsed uint64, err error) { + w.r.CaptureExit(output, gasUsed, err) +} func (w WrappedTracer) GetResult() (interface{}, error) { return w.r.Result() } From 9011356e456f8107311e4af9b519d1c3f3356e8a Mon Sep 17 00:00:00 2001 From: philip-morlier Date: Mon, 18 Oct 2021 14:52:18 -0700 Subject: [PATCH 2/2] go mod changes to reflect utils release --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index d42097c5d..8117ce54f 100644 --- a/go.mod +++ b/go.mod @@ -49,7 +49,7 @@ require ( github.com/naoina/go-stringutil v0.1.0 // indirect github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416 github.com/olekukonko/tablewriter v0.0.5 - github.com/openrelayxyz/plugeth-utils v0.0.8 + github.com/openrelayxyz/plugeth-utils v0.0.9 github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7 github.com/prometheus/tsdb v0.7.1 github.com/rjeczalik/notify v0.9.1