execution: add transaction and header AT to ConfigureEvmEnv (#10754)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Thomas Coratger
2024-09-17 14:18:03 +02:00
committed by GitHub
parent 2a04b1c100
commit 92dacf4f52
5 changed files with 11 additions and 0 deletions

View File

@ -87,6 +87,8 @@ impl MyEvmConfig {
}
impl ConfigureEvmEnv for MyEvmConfig {
type Header = Header;
fn fill_cfg_env(
&self,
cfg_env: &mut CfgEnvWithHandlerCfg,

View File

@ -144,6 +144,8 @@ impl StatefulPrecompileMut for WrappedPrecompile {
}
impl ConfigureEvmEnv for MyEvmConfig {
type Header = Header;
fn fill_tx_env(&self, tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address) {
self.inner.fill_tx_env(tx_env, transaction, sender)
}