From b96e3d35f53743a406d37b9f26dfb3b764080f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Pavi=C4=8Di=C4=87?= Date: Wed, 14 Aug 2024 14:51:32 +0200 Subject: [PATCH] docs: guides variable name fixes (#1200) --- www/docs/guides/connect_network.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/docs/guides/connect_network.md b/www/docs/guides/connect_network.md index 5eea392c5..0a097d905 100644 --- a/www/docs/guides/connect_network.md +++ b/www/docs/guides/connect_network.md @@ -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, }); @@ -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