Skip to content

Commit

Permalink
chore: update to latest revm
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Apr 12, 2024
1 parent 8d10011 commit 088f8bd
Show file tree
Hide file tree
Showing 15 changed files with 249 additions and 572 deletions.
123 changes: 65 additions & 58 deletions Cargo.lock

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

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ tracing-error = "0.2"
tracing-subscriber = "0.3"

[patch.crates-io]
revm-primitives = { git = "https://github.com/bluealloy/revm", rev = "4d64bbcd241540f90f3a6ab2285b6fe6f8febb1f" }
revm-interpreter = { git = "https://github.com/bluealloy/revm", rev = "4d64bbcd241540f90f3a6ab2285b6fe6f8febb1f" }
# revm-primitives = { git = "https://github.com/bluealloy/revm", rev = "cfc4511fe148296394c19c9ab3fb46f663218413" }
# revm-interpreter = { git = "https://github.com/bluealloy/revm", rev = "cfc4511fe148296394c19c9ab3fb46f663218413" }
revm-primitives = { git = "https://github.com/danipopes/revm", branch = "tmp-prs" }
revm-interpreter = { git = "https://github.com/danipopes/revm", branch = "tmp-prs" }
5 changes: 2 additions & 3 deletions benches/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ fn run_bench(c: &mut Criterion, bench: &Bench) {
let bytecode = revm_interpreter::analysis::to_analysed(revm_primitives::Bytecode::new_raw(
revm_primitives::Bytes::copy_from_slice(bytecode),
));
let bytecode_hash = bytecode.hash_slow();
let contract = revm_interpreter::Contract::new_env(&env, bytecode, bytecode_hash);
let contract = revm_interpreter::Contract::new_env(&env, bytecode, None);
let mut host = revm_interpreter::DummyHost::new(env);

let bytecode = contract.bytecode.original_bytecode_slice();
let bytecode = contract.bytecode.original_byte_slice();

let table = &revm_interpreter::opcode::make_instruction_table::<
revm_interpreter::DummyHost,
Expand Down
Loading

0 comments on commit 088f8bd

Please sign in to comment.