From c447d24c3069382ac0587a787b6d4a7577cf0d4a Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:26:38 +0100 Subject: [PATCH] chore(deps): bump alloy 0.9 --- Cargo.toml | 8 ++++---- examples/advanced/Cargo.toml | 10 +++++----- examples/advanced/examples/foundry_fork_db.rs | 1 + examples/advanced/examples/reth_db_provider.rs | 2 +- .../transactions/examples/send_eip4844_transaction.rs | 2 +- .../transactions/examples/send_eip7702_transaction.rs | 3 ++- 6 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5c8e633..f8699f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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", @@ -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" diff --git a/examples/advanced/Cargo.toml b/examples/advanced/Cargo.toml index 72a1bcb..7563a1d 100644 --- a/examples/advanced/Cargo.toml +++ b/examples/advanced/Cargo.toml @@ -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"] } diff --git a/examples/advanced/examples/foundry_fork_db.rs b/examples/advanced/examples/foundry_fork_db.rs index 58770d6..4e36a37 100644 --- a/examples/advanced/examples/foundry_fork_db.rs +++ b/examples/advanced/examples/foundry_fork_db.rs @@ -136,6 +136,7 @@ fn configure_evm_env( difficulty: block.header.difficulty(), blob_excess_gas_and_price: Some(BlobExcessGasAndPrice::new( block.header.excess_blob_gas().unwrap_or_default(), + false, )), }; diff --git a/examples/advanced/examples/reth_db_provider.rs b/examples/advanced/examples/reth_db_provider.rs index c74a9da..2b315cc 100644 --- a/examples/advanced/examples/reth_db_provider.rs +++ b/examples/advanced/examples/reth_db_provider.rs @@ -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(); diff --git a/examples/transactions/examples/send_eip4844_transaction.rs b/examples/transactions/examples/send_eip4844_transaction.rs index db66c3b..cd336ab 100644 --- a/examples/transactions/examples/send_eip4844_transaction.rs +++ b/examples/transactions/examples/send_eip4844_transaction.rs @@ -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(()) diff --git a/examples/transactions/examples/send_eip7702_transaction.rs b/examples/transactions/examples/send_eip7702_transaction.rs index ed93a1c..f3e0894 100644 --- a/examples/transactions/examples/send_eip7702_transaction.rs +++ b/examples/transactions/examples/send_eip7702_transaction.rs @@ -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}, @@ -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?,