Skip to main content

fill_transaction_gas_fees

Function fill_transaction_gas_fees 

Source
pub(crate) async fn fill_transaction_gas_fees<N: Network, P: Provider<N>>(
    provider: &P,
    tx: &mut N::TransactionRequest,
    legacy: bool,
    browser: bool,
) -> Result<()>
where N::TransactionRequest: FoundryTransactionBuilder<N>,
Expand description

Fills gas price or EIP-1559 fee fields from the provider and validates the final pair.