forge::utils

Function configure_tx_req_env

Source
pub fn configure_tx_req_env(
    env: &mut Env,
    tx: &TransactionRequest,
    impersonated_from: Option<Address>,
) -> Result<(), Report>
Expand description

Configures the env for the given RPC transaction request. impersonated_from is the address of the impersonated account. This helps account for an impersonated transaction by resetting the env.tx.caller field to impersonated_from.