From 6713d8d35e53e2998ea7e64916b9c6db6bb3e865 Mon Sep 17 00:00:00 2001 From: Han Date: Mon, 9 Oct 2023 13:34:26 +0800 Subject: [PATCH] refactor: loosen version requirement of `ruint` and re-export `revm` (#4) --- Cargo.toml | 2 +- src/evm.rs | 1 + src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9871a99..8106040 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2", tag = "v2023_04_20" } askama = { version = "0.12.0", features = ["config"], default-features = false } hex = "0.4.3" -ruint = "1.10.1" +ruint = "1" sha3 = "0.10" itertools = "0.11.0" diff --git a/src/evm.rs b/src/evm.rs index c442694..1ca7d34 100644 --- a/src/evm.rs +++ b/src/evm.rs @@ -48,6 +48,7 @@ pub fn encode_calldata( #[cfg(any(test, feature = "evm"))] pub(crate) mod test { + pub use revm; use revm::{ primitives::{Address, CreateScheme, ExecutionResult, Output, TransactTo, TxEnv}, InMemoryDB, EVM, diff --git a/src/lib.rs b/src/lib.rs index 47d1d29..9c6f65d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,4 +18,4 @@ pub use evm::{encode_calldata, FN_SIG_VERIFY_PROOF, FN_SIG_VERIFY_PROOF_WITH_VK_ pub use transcript::Keccak256Transcript; #[cfg(feature = "evm")] -pub use evm::test::{compile_solidity, Evm}; +pub use evm::test::{compile_solidity, revm, Evm};