Skip to content

Commit

Permalink
chore(deps): bump alloys
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-wagner committed Feb 16, 2024
1 parent adca55d commit dbd7fe1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 38 deletions.
59 changes: 30 additions & 29 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ alloy-transport = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy" }
alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy" }
alloy-primitives = { version = "0.6.2", features = ["getrandom"] }
alloy-dyn-abi = "0.6.2"
alloy-json-abi = "0.6.2"
alloy-sol-types = "0.6.2"
syn-solidity = "0.6.0"
alloy-primitives = { version = "0.6.3", features = ["getrandom"] }
alloy-dyn-abi = "0.6.3"
alloy-json-abi = "0.6.3"
alloy-sol-types = "0.6.3"
syn-solidity = "0.6.3"
alloy-chains = "0.1"

alloy-rlp = "0.3.3"
Expand Down
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl ClientFork {

let block_id = BlockId::Number(blocknumber.into());

let code = self.provider().get_code_at(address, block_id).await?;
let code = self.provider().get_code_at(address, Some(block_id)).await?;

let mut storage = self.storage_write();
storage.code_at.insert((address, blocknumber), code.clone().0.into());
Expand Down
5 changes: 2 additions & 3 deletions crates/evm/core/src/fork/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{
};
use alloy_primitives::{keccak256, Address, Bytes, B256, U256};
use alloy_providers::provider::TempProvider;
use alloy_rpc_types::{Block, BlockId, BlockNumberOrTag, Transaction};
use alloy_rpc_types::{Block, BlockId, Transaction};
use eyre::WrapErr;
use foundry_common::NON_ARCHIVE_NODE_WARNING;
use futures::{
Expand Down Expand Up @@ -196,8 +196,7 @@ where
let fut = Box::pin(async move {
let balance = provider.get_balance(address, block_id);
let nonce = provider.get_transaction_count(address, block_id);
let code =
provider.get_code_at(address, block_id.unwrap_or(BlockNumberOrTag::Latest.into()));
let code = provider.get_code_at(address, block_id);
let resp = tokio::try_join!(balance, nonce, code).map_err(Into::into);
(resp, address)
});
Expand Down

0 comments on commit dbd7fe1

Please sign in to comment.