Skip to content

Commit 47678ac

Browse files
authored
fix: add arbitrum sepolia to list of networks with diff gas calc and batch support (foundry-rs#6244)
1 parent 3432386 commit 47678ac

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

crates/cli/src/utils/cmd.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,27 @@ macro_rules! update_progress {
166166
/// True if the network calculates gas costs differently.
167167
pub fn has_different_gas_calc(chain: u64) -> bool {
168168
if let ConfigChain::Named(chain) = ConfigChain::from(chain) {
169-
return matches!(chain, Chain::Arbitrum | Chain::ArbitrumTestnet | Chain::ArbitrumGoerli)
169+
return matches!(
170+
chain,
171+
Chain::Arbitrum |
172+
Chain::ArbitrumTestnet |
173+
Chain::ArbitrumGoerli |
174+
Chain::ArbitrumSepolia
175+
)
170176
}
171177
false
172178
}
173179

174180
/// True if it supports broadcasting in batches.
175181
pub fn has_batch_support(chain: u64) -> bool {
176182
if let ConfigChain::Named(chain) = ConfigChain::from(chain) {
177-
return !matches!(chain, Chain::Arbitrum | Chain::ArbitrumTestnet | Chain::ArbitrumGoerli)
183+
return !matches!(
184+
chain,
185+
Chain::Arbitrum |
186+
Chain::ArbitrumTestnet |
187+
Chain::ArbitrumGoerli |
188+
Chain::ArbitrumSepolia
189+
)
178190
}
179191
true
180192
}

0 commit comments

Comments
 (0)