Skip to content

Commit

Permalink
fix #24: typo in rust examples
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Apr 18, 2024
1 parent 588b885 commit c7468e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/usage/subscriptions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async fn main() {
).await.unwrap();

// Open the subscription with no filters
let mut sub = client.subscribe_new_txs(None).await;
let mut sub = client.subscribe_new_transactions(None).await;

// Consume the stream
while let Some(tx) = sub.next().await {
Expand Down Expand Up @@ -113,7 +113,7 @@ sub.on("data", (tx: TypedTransaction) => {

```py
try:
sub = client.subscribe_new_txs()
sub = client.subscribe_new_transactions()

# Iterate over transaction stream
for tx in sub:
Expand Down Expand Up @@ -225,7 +225,7 @@ async fn main() {
.to("0xdAC17F958D2ee523a2206206994597C13D831ec7");

// Encode the filter
let mut sub = client.subscribe_new_txs(f.encode().unwrap()).await;
let mut sub = client.subscribe_new_transactions(f.encode().unwrap()).await;

// Consume the stream
while let Some(tx) = sub.next().await {
Expand Down

0 comments on commit c7468e7

Please sign in to comment.