Sitelet https://github.com/njelich/examples/commit/ba497db9f8a4c53cc9ce099ff2d80b998bbf6d5b
Skip to content

Commit ba497db

Browse files
committed
chore(deps): bump alloy
1 parent 8f80c37 commit ba497db

8 files changed

Lines changed: 10 additions & 27 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ significant_drop_in_scrutinee = "allow"
9494
significant_drop_tightening = "allow"
9595

9696
[workspace.dependencies]
97-
alloy = { version = "0.2.1", features = [
97+
alloy = { version = "0.3.0", features = [
9898
"full",
9999
"node-bindings",
100100
"rpc-types-debug",
@@ -117,6 +117,3 @@ tokio = "1.38"
117117
eyre = "0.6"
118118
serde = "1.0"
119119
serde_json = "1.0"
120-
121-
[patch.crates-io]
122-
alloy = { git = "https://github.com/alloy-rs/alloy", rev = "f5eaddf" }

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ This repository contains the following examples:
8484
- [x] [Send EIP-1559 transaction](./examples/transactions/examples/send_eip1559_transaction.rs)
8585
- [x] [Send legacy transaction](./examples/transactions/examples/send_legacy_transaction.rs)
8686
- [x] [Send EIP-4844 transaction](./examples/transactions/examples/send_eip4844_transaction.rs)
87+
- [x] [Send EIP-7702 transaction](./examples/transactions/examples/send_eip7702_transaction.rs)
8788
- [x] [Send private transaction using Flashbots Protect](./examples/transactions/examples/send_private_transaction.rs)
8889
- [x] [Send transaction with access list](./examples/transactions/examples/with_access_list.rs)
8990
- [x] Wallets

‎examples/providers/examples/builtin.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async fn main() -> Result<()> {
3232

3333
let handle = tokio::spawn(async move {
3434
while let Some(block) = stream.next().await {
35-
println!("{}", block.header.number.expect("Failed to get block number"));
35+
println!("{}", block.header.number);
3636
}
3737
});
3838

‎examples/providers/examples/ws.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ async fn main() -> Result<()> {
2424
// Take the stream and print the block number upon receiving a new block.
2525
let handle = tokio::spawn(async move {
2626
while let Some(block) = stream.next().await {
27-
println!(
28-
"Latest block number: {}",
29-
block.header.number.expect("Failed to get block number")
30-
);
27+
println!("Latest block number: {}", block.header.number);
3128
}
3229
});
3330

‎examples/providers/examples/ws_with_auth.rs‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,14 @@ async fn main() -> Result<()> {
3737
// Take the basic stream and print the block number upon receiving a new block.
3838
let basic_handle = tokio::spawn(async move {
3939
while let Some(block) = stream_basic.next().await {
40-
println!(
41-
"Latest block number (basic): {}",
42-
block.header.number.expect("Failed to get block number")
43-
);
40+
println!("Latest block number (basic): {}", block.header.number);
4441
}
4542
});
4643

4744
// Take the bearer stream and print the block number upon receiving a new block.
4845
let bearer_handle = tokio::spawn(async move {
4946
while let Some(block) = stream_bearer.next().await {
50-
println!(
51-
"Latest block number (bearer): {}",
52-
block.header.number.expect("Failed to get block number")
53-
);
47+
println!("Latest block number (bearer): {}", block.header.number);
5448
}
5549
});
5650

‎examples/sol-macro/examples/decode_returns.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use alloy::{
44
hex,
5-
primitives::{I256, U256},
5+
primitives::{Uint, I256, U256},
66
sol,
77
sol_types::SolCall,
88
};
@@ -31,11 +31,11 @@ fn main() -> Result<()> {
3131
assert_eq!(
3232
result,
3333
Ok(getRoundDataReturn {
34-
roundId: 110680464442257327894_u128,
34+
roundId: Uint::<80, 2>::from(110680464442257327894_u128),
3535
answer: I256::from_dec_str("352098000000")?,
3636
startedAt: U256::from(1718182523),
3737
updatedAt: U256::from(1718182523),
38-
answeredInRound: 110680464442257327894_u128,
38+
answeredInRound: Uint::<80, 2>::from(110680464442257327894_u128),
3939
})
4040
);
4141

‎examples/subscriptions/examples/subscribe_blocks.rs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ async fn main() -> Result<()> {
2222
let mut stream = subscription.into_stream().take(2);
2323

2424
while let Some(block) = stream.next().await {
25-
println!(
26-
"Received block number: {}",
27-
block.header.number.expect("Failed to get block number")
28-
);
25+
println!("Received block number: {}", block.header.number);
2926
}
3027

3128
// Poll for block headers.

‎examples/transactions/examples/send_eip7702_transaction.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ async fn main() -> Result<()> {
4141

4242
let contract = Log::deploy(&provider).await?;
4343

44-
println!("Deployed contract address: {}", contract.address());
45-
println!("Setting code for address: {}", authority.address());
46-
4744
let auth_7702 = Authorization {
4845
chain_id: U256::from(31337),
4946
address: *contract.address(), /* Reference to the contract that will be set as code for

0 commit comments

Comments
 (0)