diff --git a/rust/chains/hyperlane-ethereum/src/mailbox.rs b/rust/chains/hyperlane-ethereum/src/mailbox.rs index 7bb8d72530..587d726fb8 100644 --- a/rust/chains/hyperlane-ethereum/src/mailbox.rs +++ b/rust/chains/hyperlane-ethereum/src/mailbox.rs @@ -10,7 +10,7 @@ use async_trait::async_trait; use ethers::abi::AbiEncode; use ethers::prelude::Middleware; use ethers_contract::builders::ContractCall; -use tracing::instrument; +use tracing::{debug, instrument}; use hyperlane_core::accumulator::incremental::IncrementalMerkle; use hyperlane_core::accumulator::TREE_DEPTH; @@ -261,6 +261,7 @@ where /// Returns a ContractCall that processes the provided message. /// If the provided tx_gas_limit is None, gas estimation occurs. + #[instrument] async fn process_contract_call( &self, message: &HyperlaneMessage, @@ -271,7 +272,17 @@ where metadata.to_vec().into(), RawHyperlaneMessage::from(message).to_vec().into(), ); - fill_tx_gas_params(tx, tx_gas_limit, self.provider.clone()).await + let mut tx = fill_tx_gas_params(tx, tx_gas_limit, self.provider.clone()).await?; + if self.domain.id() == 22222 { + if let Ok(gas_price) = std::env::var("NAUTILUS_GAS_PRICE") + .unwrap_or_default() + .parse::() + { + debug!(%gas_price, "Using custom gas price for Nautilus"); + tx = tx.gas_price(gas_price); + } + } + Ok(tx) } } diff --git a/typescript/infra/config/environments/mainnet2/agent.ts b/typescript/infra/config/environments/mainnet2/agent.ts index 8c1c789551..217c237d7c 100644 --- a/typescript/infra/config/environments/mainnet2/agent.ts +++ b/typescript/infra/config/environments/mainnet2/agent.ts @@ -141,15 +141,7 @@ const hyperlane: RootAgentConfig = { validators: { docker: { repo, - tag: 'c30f471-20240530-150953', - }, - chainDockerOverrides: { - [chainMetadata.solana.name]: { - tag: 'c30f471-20240530-150953', - }, - [chainMetadata.nautilus.name]: { - tag: 'c30f471-20240530-150953', - }, + tag: 'aaee5f2-20240605-130143', }, connectionType: AgentConnectionType.HttpQuorum, chains: validatorChainConfig(Contexts.Hyperlane),