From 82676c7eb77e904bfc4840d5a5c77f3f68351cc1 Mon Sep 17 00:00:00 2001 From: Enrique Ortiz Date: Tue, 7 Nov 2023 13:04:44 -0400 Subject: [PATCH] fix: add arbitrum sepolia to list of networks with diff gas calc and batch support --- crates/cli/src/utils/cmd.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/crates/cli/src/utils/cmd.rs b/crates/cli/src/utils/cmd.rs index 38ff31e4e164..62659224a062 100644 --- a/crates/cli/src/utils/cmd.rs +++ b/crates/cli/src/utils/cmd.rs @@ -166,7 +166,13 @@ macro_rules! update_progress { /// True if the network calculates gas costs differently. pub fn has_different_gas_calc(chain: u64) -> bool { if let ConfigChain::Named(chain) = ConfigChain::from(chain) { - return matches!(chain, Chain::Arbitrum | Chain::ArbitrumTestnet | Chain::ArbitrumGoerli) + return matches!( + chain, + Chain::Arbitrum | + Chain::ArbitrumTestnet | + Chain::ArbitrumGoerli | + Chain::ArbitrumSepolia + ) } false } @@ -174,7 +180,13 @@ 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) + return !matches!( + chain, + Chain::Arbitrum | + Chain::ArbitrumTestnet | + Chain::ArbitrumGoerli | + Chain::ArbitrumSepolia + ) } true }