Skip to content

Commit

Permalink
chore(deps): bump alloy 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Dec 31, 2024
1 parent 090ba45 commit c447d24
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ significant_drop_tightening = "allow"
needless_return = "allow"

[workspace.dependencies]
alloy = { version = "0.8", features = [
alloy = { version = "0.9", features = [
"eips",
"full",
"hyper",
Expand All @@ -113,10 +113,10 @@ alloy = { version = "0.8", features = [
"signer-yubihsm",
] }

foundry-fork-db = "0.9"
foundry-fork-db = "0.10"

revm-primitives = "14.0"
revm = "18.0"
revm-primitives = "15.0"
revm = "19.0"

# async
futures-util = "0.3"
Expand Down
10 changes: 5 additions & 5 deletions examples/advanced/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ revm-primitives.workspace = true
revm.workspace = true

# reth
reth-db = { git = "https://github.com/paradigmxyz/reth", package = "reth-db", tag = "v1.1.2" }
reth-provider = { git = "https://github.com/paradigmxyz/reth", package = "reth-provider", tag = "v1.1.2" }
reth-node-types = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-types", tag = "v1.1.2" }
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", package = "reth-chainspec", tag = "v1.1.2" }
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-ethereum", tag = "v1.1.2" }
reth-db = { git = "https://github.com/paradigmxyz/reth", package = "reth-db", rev = "c0a8a7b" }
reth-provider = { git = "https://github.com/paradigmxyz/reth", package = "reth-provider", rev = "c0a8a7b" }
reth-node-types = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-types", rev = "c0a8a7b" }
reth-chainspec = { git = "https://github.com/paradigmxyz/reth", package = "reth-chainspec", rev = "c0a8a7b" }
reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", package = "reth-node-ethereum", rev = "c0a8a7b" }

eyre.workspace = true
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
Expand Down
1 change: 1 addition & 0 deletions examples/advanced/examples/foundry_fork_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fn configure_evm_env<T: TransactionResponse, H: BlockHeader>(
difficulty: block.header.difficulty(),
blob_excess_gas_and_price: Some(BlobExcessGasAndPrice::new(
block.header.excess_blob_gas().unwrap_or_default(),
false,
)),
};

Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/examples/reth_db_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ where
let provider = this.provider_at(block_id).map_err(TransportErrorKind::custom).unwrap();

let maybe_acc =
provider.basic_account(address).map_err(TransportErrorKind::custom).unwrap();
provider.basic_account(&address).map_err(TransportErrorKind::custom).unwrap();

let nonce = maybe_acc.map(|acc| acc.nonce).unwrap_or_default();

Expand Down
2 changes: 1 addition & 1 deletion examples/transactions/examples/send_eip4844_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn main() -> Result<()> {
assert_eq!(receipt.to, Some(bob));
assert_eq!(
receipt.blob_gas_used.expect("Expected to be EIP-4844 transaction"),
DATA_GAS_PER_BLOB as u128
DATA_GAS_PER_BLOB
);

Ok(())
Expand Down
3 changes: 2 additions & 1 deletion examples/transactions/examples/send_eip7702_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use alloy::{
eips::eip7702::Authorization,
network::{EthereumWallet, TransactionBuilder, TransactionBuilder7702},
node_bindings::Anvil,
primitives::U256,
providers::{Provider, ProviderBuilder},
rpc::types::TransactionRequest,
signers::{local::PrivateKeySigner, SignerSync},
Expand Down Expand Up @@ -53,7 +54,7 @@ async fn main() -> Result<()> {

// Create an authorization object for Alice to sign.
let authorization = Authorization {
chain_id: anvil.chain_id(),
chain_id: U256::from(anvil.chain_id()),
// Reference to the contract that will be set as code for the authority.
address: *contract.address(),
nonce: provider.get_transaction_count(alice.address()).await?,
Expand Down

0 comments on commit c447d24

Please sign in to comment.