Skip to content

Commit

Permalink
more fixs
Browse files Browse the repository at this point in the history
Signed-off-by: noelwei <[email protected]>
  • Loading branch information
noel2004 committed Nov 21, 2024
1 parent 73fcce4 commit 474b2a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prover/src/utils/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use halo2_proofs::{
poly::kzg::commitment::ParamsKZG,
};
use revm::{
primitives::{self, Env, ExecutionResult, Output, SpecId, TxEnv, TxKind},
primitives::{self, Env, ExecutionResult, Output, TxEnv, TxKind},
Evm, Handler, InMemoryDB,
};

Expand Down Expand Up @@ -94,9 +94,9 @@ pub fn deploy_and_call(deployment_code: Vec<u8>, calldata: Vec<u8>) -> Result<u6
..Default::default()
};
let mut evm = Evm::builder()
.with_spec_id(SpecId::CANCUN)
.with_db(&mut db)
.with_env(env)
.with_env(env.clone())
.with_handler(Handler::mainnet::<primitives::CancunSpec>())
.build();
let result = evm.transact_commit().unwrap();
match result {
Expand Down

0 comments on commit 474b2a7

Please sign in to comment.