Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 committed Sep 13, 2024
1 parent 8103e39 commit bb35a86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ arrayvec = { version = "0.7", default-features = false }
auto_impl = "1"
bytes = { version = "1", default-features = false }
ethnum = { version = "1", default-features = false, optional = true }
ethereum-types = { version = "0.14", default-features = false, optional = true }
ethereum-types = { version = "0.15", default-features = false, optional = true }
fastrlp-derive = { version = "0.2", path = "derive", optional = true }

[dev-dependencies]
Expand All @@ -22,7 +22,7 @@ fastrlp-test = { path = ".", package = "fastrlp", features = [
"ethbloom",
"ethereum-types",
] }
criterion = "0.4"
criterion = "0.5"
hex-literal = "0.4"

[features]
Expand Down
3 changes: 1 addition & 2 deletions src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ mod ethereum_types_support {
}

fn encode(&self, out: &mut dyn bytes::BufMut) {
let mut temp_arr = [0u8; $n_bytes];
self.to_big_endian(&mut temp_arr[..]);
let temp_arr = self.to_big_endian();
// cut the leading zeros after converting to big endian
let sliced = &temp_arr[(self.leading_zeros() / 8) as usize..];
sliced.encode(out);
Expand Down

0 comments on commit bb35a86

Please sign in to comment.