Skip to content

Commit

Permalink
fix trace logger panic for bsc
Browse files Browse the repository at this point in the history
  • Loading branch information
barryz committed Oct 1, 2023
1 parent 42bd62b commit 8bc2c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/txtracev1/trace_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (ot *OeTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scop
offset := stackPeek(stack.Data(), 1).Int64()
inputSize := stackPeek(stack.Data(), 2).Int64()
var input []byte
if inputSize > 0 {
if inputSize > 0 && inputSize < maxTxPacketSize {
input = make([]byte, inputSize)
copy(input, memorySlice(memory.Data(), offset, inputSize))
}
Expand Down

0 comments on commit 8bc2c6d

Please sign in to comment.