Skip to content

Commit 4ec5af7

Browse files
committed
chore: new generics
1 parent 3c32f6c commit 4ec5af7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ pub trait EvmExtUnchecked<Db: Database> {
171171
}
172172
}
173173

174-
impl<Ctx, Insp, Inst, Prec> EvmExtUnchecked<Ctx::Db> for Evm<Ctx, Insp, Inst, Prec>
174+
impl<Ctx, Insp, Inst, Prec, Frame> EvmExtUnchecked<Ctx::Db> for Evm<Ctx, Insp, Inst, Prec, Frame>
175175
where
176176
Ctx: ContextTr,
177177
{
178178
fn db_mut_ext(&mut self) -> &mut Ctx::Db {
179-
self.ctx.db()
179+
self.ctx.db_mut()
180180
}
181181
}

src/fill/fillers.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ impl Cfg for GasEstimationFiller {
6969
DisableNonceCheck.fill_cfg_env(cfg_env);
7070
}
7171

72-
fn fill_cfg<Db: revm::Database, Insp, Inst, Prec>(
72+
fn fill_cfg<Db: revm::Database, Insp, Inst, Prec, Frame>(
7373
&self,
74-
evm: &mut revm::context::Evm<crate::helpers::Ctx<Db>, Insp, Inst, Prec>,
74+
evm: &mut revm::context::Evm<crate::helpers::Ctx<Db>, Insp, Inst, Prec, Frame>,
7575
) {
7676
evm.ctx.modify_cfg(|cfg_env| self.fill_cfg_env(cfg_env));
7777

@@ -103,9 +103,9 @@ impl Cfg for CallFiller {
103103
DisableNonceCheck.fill_cfg_env(cfg_env);
104104
}
105105

106-
fn fill_cfg<Db: revm::Database, Insp, Inst, Prec>(
106+
fn fill_cfg<Db: revm::Database, Insp, Inst, Prec, Frame>(
107107
&self,
108-
evm: &mut revm::context::Evm<crate::helpers::Ctx<Db>, Insp, Inst, Prec>,
108+
evm: &mut revm::context::Evm<crate::helpers::Ctx<Db>, Insp, Inst, Prec, Frame>,
109109
) {
110110
evm.ctx.modify_cfg(|cfg_env| self.fill_cfg_env(cfg_env));
111111

src/fill/traits.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub trait Tx: Send + Sync {
1919
fn fill_tx_env(&self, tx_env: &mut TxEnv);
2020

2121
/// Fill the transaction environment on the EVM.
22-
fn fill_tx<Db: Database, Insp, Inst, Prec>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec>)
22+
fn fill_tx<Db: Database, Insp, Inst, Prec, Frame>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec, Frame>)
2323
where
2424
Self: Sized,
2525
{
@@ -67,7 +67,7 @@ pub trait Block: Send + Sync {
6767
fn fill_block_env(&self, block_env: &mut BlockEnv);
6868

6969
/// Fill the block environment on the EVM.
70-
fn fill_block<Db: Database, Insp, Inst, Prec>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec>)
70+
fn fill_block<Db: Database, Insp, Inst, Prec, Frame>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec, Frame>)
7171
where
7272
Self: Sized,
7373
{
@@ -130,7 +130,7 @@ pub trait Cfg: Send + Sync {
130130
fn fill_cfg_env(&self, cfg_env: &mut CfgEnv);
131131

132132
/// Fill the configuration environment on the EVM.
133-
fn fill_cfg<Db: Database, Insp, Inst, Prec>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec>)
133+
fn fill_cfg<Db: Database, Insp, Inst, Prec, Frame>(&self, evm: &mut Evm<Ctx<Db>, Insp, Inst, Prec, Frame>)
134134
where
135135
Self: Sized,
136136
{

0 commit comments

Comments
 (0)