Skip to content

Commit a382917

Browse files
authored
eth/tracers/js: consistent name for method receivers (#29375)
1 parent 0183c7a commit a382917

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

eth/tracers/js/goja.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,11 @@ func (mo *memoryObj) Length() int {
677677
return len(mo.memory)
678678
}
679679

680-
func (m *memoryObj) setupObject() *goja.Object {
681-
o := m.vm.NewObject()
682-
o.Set("slice", m.vm.ToValue(m.Slice))
683-
o.Set("getUint", m.vm.ToValue(m.GetUint))
684-
o.Set("length", m.vm.ToValue(m.Length))
680+
func (mo *memoryObj) setupObject() *goja.Object {
681+
o := mo.vm.NewObject()
682+
o.Set("slice", mo.vm.ToValue(mo.Slice))
683+
o.Set("getUint", mo.vm.ToValue(mo.GetUint))
684+
o.Set("length", mo.vm.ToValue(mo.Length))
685685
return o
686686
}
687687

@@ -863,12 +863,12 @@ func (co *contractObj) GetInput() goja.Value {
863863
return res
864864
}
865865

866-
func (c *contractObj) setupObject() *goja.Object {
867-
o := c.vm.NewObject()
868-
o.Set("getCaller", c.vm.ToValue(c.GetCaller))
869-
o.Set("getAddress", c.vm.ToValue(c.GetAddress))
870-
o.Set("getValue", c.vm.ToValue(c.GetValue))
871-
o.Set("getInput", c.vm.ToValue(c.GetInput))
866+
func (co *contractObj) setupObject() *goja.Object {
867+
o := co.vm.NewObject()
868+
o.Set("getCaller", co.vm.ToValue(co.GetCaller))
869+
o.Set("getAddress", co.vm.ToValue(co.GetAddress))
870+
o.Set("getValue", co.vm.ToValue(co.GetValue))
871+
o.Set("getInput", co.vm.ToValue(co.GetInput))
872872
return o
873873
}
874874

0 commit comments

Comments
 (0)