Skip to content

Commit

Permalink
bump: revm (#61)
Browse files Browse the repository at this point in the history
Opening PR just to check if CI passes
  • Loading branch information
rakita authored Mar 8, 2024
1 parent f0551cb commit aad9b3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ alloy-sol-types = "0.6"
alloy-primitives = "0.6"
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "64d0352" }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", rev = "64d0352" }
revm = { version = "6.0", default-features = false, features = ["std"] }
revm = { version = "7.1", default-features = false, features = ["std"] }

anstyle = "1.0"
colorchoice = "1.0"
thiserror = { version = "1"}
thiserror = { version = "1" }

# serde
serde = { version = "1", optional = true, features = ["derive"] }
Expand Down
5 changes: 2 additions & 3 deletions src/tracing/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ use revm::{
return_revert, CallInputs, CallOutcome, CallScheme, CreateInputs, CreateOutcome, Gas,
InstructionResult, Interpreter, InterpreterResult,
},
precompile::Precompiles,
primitives::{Env, ExecutionResult, Output, ResultAndState, TransactTo},
Database, DatabaseRef, EvmContext, Inspector,
ContextPrecompiles, Database, DatabaseRef, EvmContext, Inspector,
};

pub(crate) mod bindings;
Expand Down Expand Up @@ -359,7 +358,7 @@ impl JsInspector {
}

/// Registers the precompiles in the JS context
fn register_precompiles(&mut self, precompiles: &Precompiles) {
fn register_precompiles<DB: Database>(&mut self, precompiles: &ContextPrecompiles<DB>) {
if !self.precompiles_registered {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl TracingInspector {
to: &Address,
value: U256,
) -> bool {
if context.precompiles.contains(to) {
if context.precompiles.contains_key(to) {
// only if this is _not_ the root call
return self.is_deep() && value.is_zero();
}
Expand Down
2 changes: 1 addition & 1 deletion src/tracing/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ impl CallTraceStep {
};

if opts.is_stack_enabled() {
log.stack = self.stack.clone();
log.stack.clone_from(&self.stack);
}

if opts.is_memory_enabled() {
Expand Down

0 comments on commit aad9b3c

Please sign in to comment.