eth/tracers/js: consistent name for method receivers (#29375)
This commit is contained in:
parent
0183c7ad82
commit
a3829178af
|
@ -677,11 +677,11 @@ func (mo *memoryObj) Length() int {
|
|||
return len(mo.memory)
|
||||
}
|
||||
|
||||
func (m *memoryObj) setupObject() *goja.Object {
|
||||
o := m.vm.NewObject()
|
||||
o.Set("slice", m.vm.ToValue(m.Slice))
|
||||
o.Set("getUint", m.vm.ToValue(m.GetUint))
|
||||
o.Set("length", m.vm.ToValue(m.Length))
|
||||
func (mo *memoryObj) setupObject() *goja.Object {
|
||||
o := mo.vm.NewObject()
|
||||
o.Set("slice", mo.vm.ToValue(mo.Slice))
|
||||
o.Set("getUint", mo.vm.ToValue(mo.GetUint))
|
||||
o.Set("length", mo.vm.ToValue(mo.Length))
|
||||
return o
|
||||
}
|
||||
|
||||
|
@ -863,12 +863,12 @@ func (co *contractObj) GetInput() goja.Value {
|
|||
return res
|
||||
}
|
||||
|
||||
func (c *contractObj) setupObject() *goja.Object {
|
||||
o := c.vm.NewObject()
|
||||
o.Set("getCaller", c.vm.ToValue(c.GetCaller))
|
||||
o.Set("getAddress", c.vm.ToValue(c.GetAddress))
|
||||
o.Set("getValue", c.vm.ToValue(c.GetValue))
|
||||
o.Set("getInput", c.vm.ToValue(c.GetInput))
|
||||
func (co *contractObj) setupObject() *goja.Object {
|
||||
o := co.vm.NewObject()
|
||||
o.Set("getCaller", co.vm.ToValue(co.GetCaller))
|
||||
o.Set("getAddress", co.vm.ToValue(co.GetAddress))
|
||||
o.Set("getValue", co.vm.ToValue(co.GetValue))
|
||||
o.Set("getInput", co.vm.ToValue(co.GetInput))
|
||||
return o
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue