From de04c6668125b732b47668d3bcd04723125762eb Mon Sep 17 00:00:00 2001 From: Ho Date: Thu, 21 Nov 2024 18:13:47 +0900 Subject: [PATCH] Explicitly specify mainnet env for evm (#1447) * fix the evm usage for test contract Signed-off-by: noelwei * more fixs Signed-off-by: noelwei --------- Signed-off-by: noelwei --- prover/src/utils/evm.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/prover/src/utils/evm.rs b/prover/src/utils/evm.rs index d9030199d1..ed27f2948b 100644 --- a/prover/src/utils/evm.rs +++ b/prover/src/utils/evm.rs @@ -6,8 +6,8 @@ use halo2_proofs::{ poly::kzg::commitment::ParamsKZG, }; use revm::{ - primitives::{Env, ExecutionResult, Output, SpecId, TxEnv, TxKind}, - Evm, InMemoryDB, + primitives::{self, Env, ExecutionResult, Output, TxEnv, TxKind}, + Evm, Handler, InMemoryDB, }; use snark_verifier::pcs::kzg::{Bdfg21, Kzg}; @@ -63,9 +63,9 @@ pub fn deploy_and_call(deployment_code: Vec, calldata: Vec) -> Result()) .build(); let result = evm.transact_commit().unwrap(); let contract = match result { @@ -94,9 +94,9 @@ pub fn deploy_and_call(deployment_code: Vec, calldata: Vec) -> Result()) .build(); let result = evm.transact_commit().unwrap(); match result {