forge::utils

Function configure_tx_env

Source
pub fn configure_tx_env(env: &mut Env, tx: &Transaction<AnyTxEnvelope>)
Expand description

Configures the env for the given RPC transaction. Accounts for an impersonated transaction by resetting the env.tx.caller field to tx.from.