Skip to content

Commit

Permalink
more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Aug 27, 2023
1 parent d4f2885 commit 9be0821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (l *StructLogger) CaptureState(pc uint64, op OpCode, gas, cost uint64, scop
}

// in reality it is impossible for CREATE to trigger ErrContractAddressCollision
if op == CREATE2 && stack.len() >= 4 {
if op == CREATE2 && opErr == nil {
_ = stack.data[stack.len()-1] // value
offset := stack.data[stack.len()-2]
size := stack.data[stack.len()-3]
Expand Down

0 comments on commit 9be0821

Please sign in to comment.