File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ repository.workspace = true
1313[dev-dependencies ]
1414alloy.workspace = true
1515# Temp dependency fix to enable relevant features - Ref: https://github.com/alloy-rs/examples/pull/3#discussion_r1537842062
16- alloy-rpc-client = { git = " https://github.com/alloy-rs/alloy" , rev = " fd8f065 " , features = [
16+ alloy-rpc-client = { git = " https://github.com/alloy-rs/alloy" , rev = " f7333c4 " , features = [
1717 " pubsub" ,
1818] }
19- alloy-provider = { git = " https://github.com/alloy-rs/alloy" , rev = " fd8f065 " , features = [
19+ alloy-provider = { git = " https://github.com/alloy-rs/alloy" , rev = " f7333c4 " , features = [
2020 " pubsub" ,
2121 " ws" ,
2222] }
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ repository.workspace = true
1313[dev-dependencies ]
1414alloy.workspace = true
1515# Temp fix for enabling features. Ref: https://github.com/alloy-rs/examples/pull/3/#discussion_r1537842062
16- alloy-rpc-client = { git = " https://github.com/alloy-rs/alloy" , rev = " fd8f065 " , features = [
16+ alloy-rpc-client = { git = " https://github.com/alloy-rs/alloy" , rev = " f7333c4 " , features = [
1717 " pubsub" ,
1818 " ws" ,
1919] }
20- alloy-provider = { git = " https://github.com/alloy-rs/alloy" , rev = " fd8f065 " , features = [
20+ alloy-provider = { git = " https://github.com/alloy-rs/alloy" , rev = " f7333c4 " , features = [
2121 " pubsub" ,
2222] }
2323# alloy-contract.workspace = true
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ async fn main() -> Result<()> {
4343 println ! ( "Transfer tx: {:?}" , pending_tx. tx_hash( ) ) ;
4444
4545 // Wait for confirmation
46- let _ = pending_tx. with_confirmations ( 1 ) ;
46+ let _ = pending_tx. with_required_confirmations ( 1 ) ;
4747
4848 let to_bal = balance_of ( & provider, to, contract_address) . await ?;
4949 let from_bal = balance_of ( & provider, from, contract_address) . await ?;
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ async fn main() -> Result<()> {
3030 } ;
3131
3232 // Broadcast the transaction and wait for the receipt.
33- let receipt = provider. send_transaction ( tx) . await ?. with_confirmations ( 3 ) . get_receipt ( ) . await ?;
33+ let receipt =
34+ provider. send_transaction ( tx) . await ?. with_required_confirmations ( 3 ) . get_receipt ( ) . await ?;
3435
3536 println ! ( "Send transaction: {:?}" , receipt. transaction_hash) ;
3637
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ async fn main() -> Result<()> {
3030 } ;
3131
3232 // Broadcast the transaction and wait for the receipt.
33- let receipt = provider. send_transaction ( tx) . await ?. with_confirmations ( 3 ) . get_receipt ( ) . await ?;
33+ let receipt =
34+ provider. send_transaction ( tx) . await ?. with_required_confirmations ( 3 ) . get_receipt ( ) . await ?;
3435
3536 println ! ( "Send transaction: {:?}" , receipt. transaction_hash) ;
3637
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ async fn main() -> Result<()> {
3939 } ;
4040
4141 // Broadcast the transaction and wait for the receipt.
42- let receipt = provider. send_transaction ( tx) . await ?. with_confirmations ( 3 ) . get_receipt ( ) . await ?;
42+ let receipt =
43+ provider. send_transaction ( tx) . await ?. with_required_confirmations ( 3 ) . get_receipt ( ) . await ?;
4344
4445 println ! ( "Send transaction: {:?}" , receipt. transaction_hash) ;
4546
You can’t perform that action at this time.
0 commit comments