Skip to content

Commit

Permalink
bump to revm 5.0.0 (#871)
Browse files Browse the repository at this point in the history
* bump to 5.0.0

---------

Co-authored-by: Waylon Jepsen <[email protected]>
Co-authored-by: Waylon Jepsen <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2024
1 parent 85d4a8c commit 9ff5cae
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 63 deletions.
85 changes: 28 additions & 57 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ path = "bin/main.rs"
[workspace.dependencies]
# Local
arbiter-bindings = "0.1.2"
arbiter-core = "0.10.0"
arbiter-macros = "0.1.0"
arbiter-core = { path = "arbiter-core" }
arbiter-macros = "0.1.0"

revm = { version = "=4.0.0", features = ["ethersdb", "std", "serde"] }
revm = { version = "5.0.0", features = ["ethersdb", "std", "serde"] }
revm-primitives = "=2.0.0"
ethers = { version = "2.0.13" }

Expand Down
2 changes: 1 addition & 1 deletion arbiter-core/tests/environment_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use arbiter_bindings::bindings::{self, weth::weth};
use arbiter_core::database::fork::Fork;
use ethers::{
prelude::Middleware,
types::{Address, H256, U256 as eU256, U64},
types::{Address, U256 as eU256, U64},
};
include!("common.rs");

Expand Down
4 changes: 2 additions & 2 deletions bin/fork/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use ethers::{
utils::{hex, keccak256},
};
use revm::{
db::{ethersdb::EthersDB, CacheDB, EmptyDB},
db::{ethersdb::EthersDB, in_memory_db::CacheDB, EmptyDB, EmptyDBTyped},
Database,
};
use serde::Serialize;
Expand Down Expand Up @@ -63,7 +63,7 @@ impl ForkConfig {
pub(crate) fn digest_config(&self) -> Result<CacheDB<EmptyDB>, ArbiterError> {
// Spawn the `EthersDB` and the `CacheDB` we will write to.
let ethers_db = &mut self.spawn_ethers_db()?;
let mut db = CacheDB::new(EmptyDB::default());
let mut db = CacheDB::new(EmptyDBTyped::default());
for contract_data in self.contracts_meta.values() {
let address = contract_data.address;
let info = ethers_db
Expand Down

0 comments on commit 9ff5cae

Please sign in to comment.