Commit 4cf68ade authored by Mark Tyneway's avatar Mark Tyneway

l2geth: rollup client style

Small style fix in the rollup client

Co-authored-by: r1cs
parent 01679a41
---
'@eth-optimism/l2geth': patch
---
Style fix in the `RollupClient`
...@@ -331,11 +331,12 @@ func batchedTransactionToTransaction(res *transaction, signer *types.EIP155Signe ...@@ -331,11 +331,12 @@ func batchedTransactionToTransaction(res *transaction, signer *types.EIP155Signe
// The queue origin must be either sequencer of l1, otherwise // The queue origin must be either sequencer of l1, otherwise
// it is considered an unknown queue origin and will not be processed // it is considered an unknown queue origin and will not be processed
var queueOrigin types.QueueOrigin var queueOrigin types.QueueOrigin
if res.QueueOrigin == sequencer { switch res.QueueOrigin {
case sequencer:
queueOrigin = types.QueueOriginSequencer queueOrigin = types.QueueOriginSequencer
} else if res.QueueOrigin == l1 { case l1:
queueOrigin = types.QueueOriginL1ToL2 queueOrigin = types.QueueOriginL1ToL2
} else { default:
return nil, fmt.Errorf("Unknown queue origin: %s", res.QueueOrigin) return nil, fmt.Errorf("Unknown queue origin: %s", res.QueueOrigin)
} }
// Transactions that have been decoded are // Transactions that have been decoded are
......
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