From c7c68abcbeb51609797d78f196e20433075d8816 Mon Sep 17 00:00:00 2001 From: bnovil Date: Thu, 28 Mar 2024 10:37:53 +0800 Subject: [PATCH] fix different receiver names --- eth/tracers/js/goja.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go index 7e4930f81d..ae8e9f3269 100644 --- a/eth/tracers/js/goja.go +++ b/eth/tracers/js/goja.go @@ -677,7 +677,7 @@ func (mo *memoryObj) Length() int { return len(mo.memory) } -func (m *memoryObj) setupObject() *goja.Object { +func (mo *memoryObj) setupObject() *goja.Object { o := m.vm.NewObject() o.Set("slice", m.vm.ToValue(m.Slice)) o.Set("getUint", m.vm.ToValue(m.GetUint)) @@ -863,7 +863,7 @@ func (co *contractObj) GetInput() goja.Value { return res } -func (c *contractObj) setupObject() *goja.Object { +func (co *contractObj) setupObject() *goja.Object { o := c.vm.NewObject() o.Set("getCaller", c.vm.ToValue(c.GetCaller)) o.Set("getAddress", c.vm.ToValue(c.GetAddress))