Skip to content

Commit 6ee3e88

Browse files
chore(deps): bump alloys (foundry-rs#7149)
1 parent adca55d commit 6ee3e88

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

Cargo.lock

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,11 @@ alloy-transport = { git = "https://github.com/alloy-rs/alloy" }
170170
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy" }
171171
alloy-transport-ipc = { git = "https://github.com/alloy-rs/alloy" }
172172
alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy" }
173-
alloy-primitives = { version = "0.6.2", features = ["getrandom"] }
174-
alloy-dyn-abi = "0.6.2"
175-
alloy-json-abi = "0.6.2"
176-
alloy-sol-types = "0.6.2"
177-
syn-solidity = "0.6.0"
173+
alloy-primitives = { version = "0.6.3", features = ["getrandom"] }
174+
alloy-dyn-abi = "0.6.3"
175+
alloy-json-abi = "0.6.3"
176+
alloy-sol-types = "0.6.3"
177+
syn-solidity = "0.6.3"
178178
alloy-chains = "0.1"
179179

180180
alloy-rlp = "0.3.3"

crates/anvil/src/eth/backend/fork.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl ClientFork {
268268

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

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

273273
let mut storage = self.storage_write();
274274
storage.code_at.insert((address, blocknumber), code.clone().0.into());

crates/evm/core/src/fork/backend.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
};
66
use alloy_primitives::{keccak256, Address, Bytes, B256, U256};
77
use alloy_providers::provider::TempProvider;
8-
use alloy_rpc_types::{Block, BlockId, BlockNumberOrTag, Transaction};
8+
use alloy_rpc_types::{Block, BlockId, Transaction};
99
use eyre::WrapErr;
1010
use foundry_common::NON_ARCHIVE_NODE_WARNING;
1111
use futures::{
@@ -196,8 +196,7 @@ where
196196
let fut = Box::pin(async move {
197197
let balance = provider.get_balance(address, block_id);
198198
let nonce = provider.get_transaction_count(address, block_id);
199-
let code =
200-
provider.get_code_at(address, block_id.unwrap_or(BlockNumberOrTag::Latest.into()));
199+
let code = provider.get_code_at(address, block_id);
201200
let resp = tokio::try_join!(balance, nonce, code).map_err(Into::into);
202201
(resp, address)
203202
});

crates/forge/src/runner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl<'a> ContractRunner<'a> {
318318
if !span.is_disabled() {
319319
let sig = &func.signature()[..];
320320
if enabled!(tracing::Level::TRACE) {
321-
span.record("sig", &sig);
321+
span.record("sig", sig);
322322
} else {
323323
span.record("sig", sig.split('(').next().unwrap());
324324
}
@@ -578,7 +578,7 @@ impl<'a> ContractRunner<'a> {
578578
if !span.is_disabled() {
579579
let sig = &func.signature()[..];
580580
if enabled!(tracing::Level::TRACE) {
581-
span.record("test", &sig);
581+
span.record("test", sig);
582582
} else {
583583
span.record("test", sig.split('(').next().unwrap());
584584
}

0 commit comments

Comments
 (0)