Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(anvil): remove old ethers-dependent anvil core types #6842

Merged
merged 11 commits into from
Jan 19, 2024
Prev Previous commit
Next Next commit
u256::decode
  • Loading branch information
Evalir committed Jan 18, 2024
commit 746a33faa452a5d1e7f9a6249257b8d73ab7abcd
3 changes: 2 additions & 1 deletion crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use crate::{
use alloy_consensus::{Header, Receipt, ReceiptWithBloom, TxEnvelope};
use alloy_network::Sealable;
use alloy_primitives::{keccak256, Address, Bytes, TxHash, B256, B64, U128, U256, U64, U8};
use alloy_rlp::Decodable;
use alloy_rpc_trace_types::{
geth::{DefaultFrame, GethDebugTracingOptions, GethDefaultTracingOptions, GethTrace},
parity::LocalizedTransactionTrace,
Expand Down Expand Up @@ -2532,7 +2533,7 @@ pub fn prove_storage(

let item: U256 = {
let decode_value = |mut bytes: &[u8]| {
<U256 as alloy_rlp::Decodable>::decode(&mut bytes).expect("decoding db value failed")
U256::decode(&mut bytes).expect("decoding db value failed")
};
let query = (&mut recorder, decode_value);
trie.get_with(storage_key.as_slice(), query)
Expand Down
Loading