pub trait Tx: Send + Sync {
// Required method
fn fill_tx_env(&self, tx_env: &mut TxEnv);
// Provided method
fn fill_tx<Db: Database, Insp, Inst, Prec>(
&self,
evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec>,
)
where Self: Sized { ... }
}
Expand description
Types that can fill the EVM transaction environment TxEnv
.
Required Methods§
Sourcefn fill_tx_env(&self, tx_env: &mut TxEnv)
fn fill_tx_env(&self, tx_env: &mut TxEnv)
Fill the transaction environment.
§Note:
It is generally expected that the filler will fill (or at least inspect) ALL fields of the transaction environment. This is because the EVM will NOT clear the transaction environment between transactions. If the filler does not fill a field, it will be left unchanged from the previous transaction.