Skip to content

Commit

Permalink
chore: bump alloy 0.11 (#259)
Browse files Browse the repository at this point in the history
## Description

Bump alloy to the next version.

---------

Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
rkrasiuk and mattsse authored Jan 31, 2025
1 parent 2b789fd commit 36ad38c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ clippy.lint_groups_priority = "allow"

[dependencies]
# eth
alloy-rpc-types-eth = "0.9"
alloy-rpc-types-trace = "0.9"
alloy-rpc-types-eth = "0.11"
alloy-rpc-types-trace = "0.11"
alloy-sol-types = "0.8"
alloy-primitives = { version = "0.8", features = ["map"] }
revm = { version = "19.0.0", default-features = false, features = ["std"] }
Expand All @@ -56,3 +56,7 @@ default = ["std"]
std = ["alloy-primitives/std", "anstyle/std", "serde/std", "serde_json/std", "revm/std", "thiserror/std"]
serde = ["dep:serde", "revm/serde"]
js-tracer = ["dep:boa_engine", "dep:boa_gc"]

[patch.crates-io]
#alloy-rpc-types-eth = { git = "https://github.com/alloy-rs/alloy", rev = "cfb13aa" }
#alloy-rpc-types-trace = { git = "https://github.com/alloy-rs/alloy", rev = "cfb13aa" }
2 changes: 1 addition & 1 deletion src/tracing/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use revm::{
///
/// See: <https://github.com/ethereum/go-ethereum/blob/366d2169fbc0e0f803b68c042b77b6b480836dbc/eth/tracers/logger/logger.go#L450-L452>
pub(crate) fn convert_memory(data: &[u8]) -> Vec<String> {
let mut memory = Vec::with_capacity((data.len() + 31) / 32);
let mut memory = Vec::with_capacity(data.len().div_ceil(32));
let chunks = data.chunks_exact(32);
let remainder = chunks.remainder();
for chunk in chunks {
Expand Down

0 comments on commit 36ad38c

Please sign in to comment.