Commit 3aa7695b authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #1330 from ethereum-optimism/l2geth/api-allow-address-0

l2geth: allow RPC transactions to go to `address(0)`
parents fbd508bf 9d1ff999
---
'@eth-optimism/l2geth': patch
---
Allow transactions via RPC to `address(0)`
...@@ -304,9 +304,6 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) ...@@ -304,9 +304,6 @@ func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction)
if b.UsingOVM { if b.UsingOVM {
to := signedTx.To() to := signedTx.To()
if to != nil { if to != nil {
if *to == (common.Address{}) {
return errors.New("Cannot send transaction to zero address")
}
// Prevent QueueOriginSequencer transactions that are too large to // Prevent QueueOriginSequencer transactions that are too large to
// be included in a batch. The `MaxCallDataSize` should be set to // be included in a batch. The `MaxCallDataSize` should be set to
// the layer one consensus max transaction size in bytes minus the // the layer one consensus max transaction size in bytes minus the
......
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