Skip to content

Commit

Permalink
chore: Upgrade revm version (#143)
Browse files Browse the repository at this point in the history
Upgrade revm version to help unblock changes needed in
paradigmxyz/reth#8264 (comment)

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
  • Loading branch information
quentinv72 and DaniPopes authored Jun 16, 2024
1 parent 70e721d commit 52f632e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ clippy.lint_groups_priority = "allow"
alloy-sol-types = "0.7"
alloy-primitives = "0.7"
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "00d81d7", features = ["eth", "trace"] }
revm = { version = "9.0", git = "https://github.com/bluealloy/revm.git", rev = "a28a543", default-features = false, features = [
revm = { version = "9.0", git = "https://github.com/bluealloy/revm.git", rev = "8f4c153", default-features = false, features = [
"std",
] }

Expand Down
5 changes: 3 additions & 2 deletions src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ impl TracingInspector {
step.storage_change = match (op, journal_entry) {
(
opcode::SLOAD | opcode::SSTORE,
Some(JournalEntry::StorageChange { address, key, had_value }),
Some(JournalEntry::StorageChanged { address, key, had_value }),
) => {
// SAFETY: (Address,key) exists if part if StorageChange
let value = context.journaled_state.state[address].storage[key].present_value();
Expand All @@ -417,7 +417,8 @@ impl TracingInspector {
opcode::SSTORE => StorageChangeReason::SSTORE,
_ => unreachable!(),
};
let change = StorageChange { key: *key, value, had_value: *had_value, reason };
let change =
StorageChange { key: *key, value, had_value: Some(*had_value), reason };
Some(change)
}
_ => None,
Expand Down
2 changes: 1 addition & 1 deletion src/tracing/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ pub enum StorageChangeReason {
/// Represents a storage change during execution.
///
/// This maps to evm internals:
/// [JournalEntry::StorageChange](revm::JournalEntry::StorageChange)
/// [JournalEntry::StorageChanged](revm::JournalEntry::StorageChanged)
///
/// It is used to track both storage change and warm load of a storage slot. For warm load in regard
/// to EIP-2929 AccessList had_value will be None.
Expand Down

0 comments on commit 52f632e

Please sign in to comment.