@@ -548,10 +548,10 @@ func (mo *memoryObj) slice(begin, end int64) ([]byte, error) {
548
548
return []byte {}, nil
549
549
}
550
550
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 )
552
552
}
553
553
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 )
555
555
}
556
556
return mo .memory .GetCopy (begin , end - begin ), nil
557
557
}
@@ -573,7 +573,7 @@ func (mo *memoryObj) GetUint(addr int64) goja.Value {
573
573
// getUint returns the 32 bytes at the specified address interpreted as a uint.
574
574
func (mo * memoryObj ) getUint (addr int64 ) (* big.Int , error ) {
575
575
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 )
577
577
}
578
578
return new (big.Int ).SetBytes (mo .memory .GetPtr (addr , 32 )), nil
579
579
}
@@ -613,7 +613,7 @@ func (s *stackObj) Peek(idx int) goja.Value {
613
613
// peek returns the nth-from-the-top element of the stack.
614
614
func (s * stackObj ) peek (idx int ) (* big.Int , error ) {
615
615
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 )
617
617
}
618
618
return s .stack .Back (idx ).ToBig (), nil
619
619
}
0 commit comments