Skip to content

Commit

Permalink
bump to 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Oct 21, 2024
1 parent 227f0d9 commit 4b8d1c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 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.4.1", features = [
alloy = { version = "0.5.2", features = [
"full",
"node-bindings",
"rpc-types-debug",
Expand All @@ -111,7 +111,7 @@ alloy = { version = "0.4.1", features = [
"eips",
] }

foundry-fork-db = "0.4"
foundry-fork-db = "0.5"
revm-primitives = "10.0"
revm = "14.0"

Expand Down
4 changes: 2 additions & 2 deletions examples/providers/examples/ws_with_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ async fn main() -> Result<()> {

// Create the WS connection object with authentication.
let rpc_url = "wss://your-ws-endpoint.com/";
let ws_basic = WsConnect::with_auth(rpc_url, Some(auth));
let ws_bearer = WsConnect::with_auth(rpc_url, Some(auth_bearer));
let ws_basic = WsConnect::new(rpc_url).with_auth(auth);
let ws_bearer = WsConnect::new(rpc_url).with_auth(auth_bearer);

// Create the provider.
let provider_basic = ProviderBuilder::new().on_ws(ws_basic).await?;
Expand Down
3 changes: 1 addition & 2 deletions examples/transactions/examples/send_eip7702_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ 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 @@ -54,7 +53,7 @@ async fn main() -> Result<()> {

// Create an authorization object for Alice to sign.
let authorization = Authorization {
chain_id: U256::from(anvil.chain_id()),
chain_id: 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 4b8d1c1

Please sign in to comment.