Skip to content

Commit

Permalink
docs: guides variable name fixes (#1200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivpavici committed Aug 14, 2024
1 parent a00e86e commit b96e3d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/docs/guides/connect_network.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ The BatchClient class allows requests to be batched together in a single HTTP re
#### Example of usage with RpcProvider

```typescript
const myProvider = new RpcProvider({
const myBatchProvider = new RpcProvider({
batch: 0,
});

Expand All @@ -193,9 +193,9 @@ const batchClient = new BatchClient({
});

const [getBlockResponse, blockHashAndNumber, txCount] = await Promise.all([
myBatchProvider.getBlock(),
myBatchProvider.getBlockLatestAccepted(),
myBatchProvider.getBlockTransactionCount('latest'),
batchClient.getBlock(),
batchClient.getBlockLatestAccepted(),
batchClient.getBlockTransactionCount('latest'),
]);

// ... usage of getBlockResponse, blockHashAndNumber, txCount
Expand Down

0 comments on commit b96e3d3

Please sign in to comment.