@@ -548,10 +548,10 @@ func (mo *memoryObj) slice(begin, end int64) ([]byte, error) {
548548 return []byte {}, nil
549549 }
550550 if end < begin || begin < 0 {
551- return nil , fmt .Errorf ("Tracer accessed out of bound memory: offset %d, end %d" , begin , end )
551+ return nil , fmt .Errorf ("tracer accessed out of bound memory: offset %d, end %d" , begin , end )
552552 }
553553 if mo .memory .Len () < int (end ) {
554- return nil , fmt .Errorf ("Tracer accessed out of bound memory: available %d, offset %d, size %d" , mo .memory .Len (), begin , end - begin )
554+ return nil , fmt .Errorf ("tracer accessed out of bound memory: available %d, offset %d, size %d" , mo .memory .Len (), begin , end - begin )
555555 }
556556 return mo .memory .GetCopy (begin , end - begin ), nil
557557}
@@ -573,7 +573,7 @@ func (mo *memoryObj) GetUint(addr int64) goja.Value {
573573// getUint returns the 32 bytes at the specified address interpreted as a uint.
574574func (mo * memoryObj ) getUint (addr int64 ) (* big.Int , error ) {
575575 if mo .memory .Len () < int (addr )+ 32 || addr < 0 {
576- return nil , fmt .Errorf ("Tracer accessed out of bound memory: available %d, offset %d, size %d" , mo .memory .Len (), addr , 32 )
576+ return nil , fmt .Errorf ("tracer accessed out of bound memory: available %d, offset %d, size %d" , mo .memory .Len (), addr , 32 )
577577 }
578578 return new (big.Int ).SetBytes (mo .memory .GetPtr (addr , 32 )), nil
579579}
@@ -613,7 +613,7 @@ func (s *stackObj) Peek(idx int) goja.Value {
613613// peek returns the nth-from-the-top element of the stack.
614614func (s * stackObj ) peek (idx int ) (* big.Int , error ) {
615615 if len (s .stack .Data ()) <= idx || idx < 0 {
616- return nil , fmt .Errorf ("Tracer accessed out of bound stack: size %d, index %d" , len (s .stack .Data ()), idx )
616+ return nil , fmt .Errorf ("tracer accessed out of bound stack: size %d, index %d" , len (s .stack .Data ()), idx )
617617 }
618618 return s .stack .Back (idx ).ToBig (), nil
619619}
0 commit comments