From b29c444876a8e6a744ef87ea8da91496923f7981 Mon Sep 17 00:00:00 2001 From: Janek Date: Tue, 29 Nov 2022 19:04:09 +0100 Subject: [PATCH] docs: update --- __tests__/defaultProvider.test.ts | 2 +- www/docs/API/provider.md | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/__tests__/defaultProvider.test.ts b/__tests__/defaultProvider.test.ts index 3bbda0a17..bb7f42d56 100644 --- a/__tests__/defaultProvider.test.ts +++ b/__tests__/defaultProvider.test.ts @@ -75,7 +75,7 @@ describe('defaultProvider', () => { }); }); - test('getNonce()', async () => { + test('getNonceForAddress()', async () => { const nonce = await testProvider.getNonceForAddress(erc20ContractAddress); return expect(toBN(nonce)).toEqual(toBN('0x0')); }); diff --git a/www/docs/API/provider.md b/www/docs/API/provider.md index a0449fe37..caf6bd114 100644 --- a/www/docs/API/provider.md +++ b/www/docs/API/provider.md @@ -141,9 +141,9 @@ Estimate fee for invoke transaction.
-provider.**getNonce**(contractAddress, blockIdentifier) => _Promise < BigNumberish >_ +provider.**getNonceForAddress**(contractAddress, blockIdentifier) => _Promise < BigNumberish >_ -Gets the nonce of the provided contractAddress. +Gets the nonce of the provided contractAddress. This was renamed from `getNonce` to `getNonceForAddress` to avoid confusion when inheriting an Account from the Provider class.
@@ -478,12 +478,6 @@ Gets the latest block number.
-provider.**getNonce**(contractAddress, blockIdentifier) => _Promise < BigNumberish >_ - -Gets the nonce of the provided contractAddress - -
- provider.**getPendingTransactions**() => _Promise < PendingTransactions >_ ###### _PendingTransactions_