Skip to content

Commit

Permalink
script: support sending batches to optimism (foundry-rs#5134)
Browse files Browse the repository at this point in the history
After bedrock, transactions are held in a mempool meaning that it
is possible to send batches of transactions. There is no need to
wait for each transaction to be confirmed before sending the next
like in the legacy system. This commit removes the need to send
transactions sequentially when using optimism with `forge script`
  • Loading branch information
tynes authored Jun 13, 2023
1 parent 087837e commit 87c4761
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions cli/src/cmd/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,7 @@ pub fn has_different_gas_calc(chain: u64) -> bool {
/// True if it supports broadcasting in batches.
pub fn has_batch_support(chain: u64) -> bool {
if let ConfigChain::Named(chain) = ConfigChain::from(chain) {
return !matches!(
chain,
Chain::Arbitrum |
Chain::ArbitrumTestnet |
Chain::ArbitrumGoerli |
Chain::Optimism |
Chain::OptimismKovan |
Chain::OptimismGoerli
)
return !matches!(chain, Chain::Arbitrum | Chain::ArbitrumTestnet | Chain::ArbitrumGoerli)
}
true
}
Expand Down

0 comments on commit 87c4761

Please sign in to comment.