Commit 257deb70 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

fix: prevent overflow in abi encoding (#1135)

* l2geth: prevent overflow in abi encoding to ovm codec tx

* chore: add changeset
parent 16f68159
---
'@eth-optimism/l2geth': patch
---
Prevent overflows in abi encoding of ovm codec transaction from geth types.Transaction
......@@ -111,7 +111,7 @@ func EncodeSimulatedMessage(msg Message, timestamp, blockNumber *big.Int, execut
uint8(msg.QueueOrigin()),
*msg.L1MessageSender(),
*to,
big.NewInt(int64(msg.Gas())),
new(big.Int).SetUint64(msg.Gas()),
msg.Data(),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment