Skip to content

Commit

Permalink
update to f7333c4
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosnacks committed Mar 26, 2024
1 parent 5d05036 commit fff6a81
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/providers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ repository.workspace = true
[dev-dependencies]
alloy.workspace = true
# Temp dependency fix to enable relevant features - Ref: https://github.com/alloy-rs/examples/pull/3#discussion_r1537842062
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", features = [
"pubsub",
] }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", features = [
"pubsub",
"ws",
] }
Expand Down
4 changes: 2 additions & 2 deletions examples/subscriptions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ repository.workspace = true
[dev-dependencies]
alloy.workspace = true
# Temp fix for enabling features. Ref: https://github.com/alloy-rs/examples/pull/3/#discussion_r1537842062
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", features = [
"pubsub",
"ws",
] }
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "fd8f065", features = [
alloy-provider = { git = "https://github.com/alloy-rs/alloy", rev = "f7333c4", features = [
"pubsub",
] }
# alloy-contract.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion examples/transactions/examples/transfer_erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async fn main() -> Result<()> {
println!("Transfer tx: {:?}", pending_tx.tx_hash());

// Wait for confirmation
let _ = pending_tx.with_confirmations(1);
let _ = pending_tx.with_required_confirmations(1);

let to_bal = balance_of(&provider, to, contract_address).await?;
let from_bal = balance_of(&provider, from, contract_address).await?;
Expand Down
3 changes: 2 additions & 1 deletion examples/wallets/examples/ledger_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ async fn main() -> Result<()> {
};

// Broadcast the transaction and wait for the receipt.
let receipt = provider.send_transaction(tx).await?.with_confirmations(3).get_receipt().await?;
let receipt =
provider.send_transaction(tx).await?.with_required_confirmations(3).get_receipt().await?;

println!("Send transaction: {:?}", receipt.transaction_hash);

Expand Down
3 changes: 2 additions & 1 deletion examples/wallets/examples/trezor_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ async fn main() -> Result<()> {
};

// Broadcast the transaction and wait for the receipt.
let receipt = provider.send_transaction(tx).await?.with_confirmations(3).get_receipt().await?;
let receipt =
provider.send_transaction(tx).await?.with_required_confirmations(3).get_receipt().await?;

println!("Send transaction: {:?}", receipt.transaction_hash);

Expand Down
3 changes: 2 additions & 1 deletion examples/wallets/examples/yubi_signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ async fn main() -> Result<()> {
};

// Broadcast the transaction and wait for the receipt.
let receipt = provider.send_transaction(tx).await?.with_confirmations(3).get_receipt().await?;
let receipt =
provider.send_transaction(tx).await?.with_required_confirmations(3).get_receipt().await?;

println!("Send transaction: {:?}", receipt.transaction_hash);

Expand Down

0 comments on commit fff6a81

Please sign in to comment.