We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b4079 commit d4a0ae9Copy full SHA for d4a0ae9
rust/chains/hyperlane-ethereum/src/tx.rs
@@ -78,9 +78,13 @@ where
78
let gas_limit = if let Some(gas_limit) = tx_gas_limit {
79
gas_limit
80
} else {
81
+ let hyp_gas_estimate_buffer: u32 = std::env::var("HYP_GAS_ESTIMATE_BUFFER")
82
+ .unwrap_or(String::from("50000"))
83
+ .parse()
84
+ .unwrap();
85
tx.estimate_gas()
86
.await?
- .saturating_add(U256::from(GAS_ESTIMATE_BUFFER))
87
+ .saturating_add(U256::from(hyp_gas_estimate_buffer))
88
};
89
let Ok((max_fee, max_priority_fee)) = provider.estimate_eip1559_fees(None).await else {
90
// Is not EIP 1559 chain
0 commit comments