Sitelet https://github.com/dicethedev/examples/commit/4b8d1c1127c666958558970d014a37caa575a9a6
Skip to content

Commit 4b8d1c1

Browse files
committed
bump to 0.5.2
1 parent 227f0d9 commit 4b8d1c1

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ significant_drop_tightening = "allow"
9595
needless_return = "allow"
9696

9797
[workspace.dependencies]
98-
alloy = { version = "0.4.1", features = [
98+
alloy = { version = "0.5.2", features = [
9999
"full",
100100
"node-bindings",
101101
"rpc-types-debug",
@@ -111,7 +111,7 @@ alloy = { version = "0.4.1", features = [
111111
"eips",
112112
] }
113113

114-
foundry-fork-db = "0.4"
114+
foundry-fork-db = "0.5"
115115
revm-primitives = "10.0"
116116
revm = "14.0"
117117

‎examples/providers/examples/ws_with_auth.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ async fn main() -> Result<()> {
1515

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

2121
// Create the provider.
2222
let provider_basic = ProviderBuilder::new().on_ws(ws_basic).await?;

‎examples/transactions/examples/send_eip7702_transaction.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use alloy::{
44
eips::eip7702::Authorization,
55
network::{EthereumWallet, TransactionBuilder, TransactionBuilder7702},
66
node_bindings::Anvil,
7-
primitives::U256,
87
providers::{Provider, ProviderBuilder},
98
rpc::types::TransactionRequest,
109
signers::{local::PrivateKeySigner, SignerSync},
@@ -54,7 +53,7 @@ async fn main() -> Result<()> {
5453

5554
// Create an authorization object for Alice to sign.
5655
let authorization = Authorization {
57-
chain_id: U256::from(anvil.chain_id()),
56+
chain_id: anvil.chain_id(),
5857
// Reference to the contract that will be set as code for the authority.
5958
address: *contract.address(),
6059
nonce: provider.get_transaction_count(alice.address()).await?,

0 commit comments

Comments
 (0)