Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Nov 29, 2022
1 parent 986aa2e commit b29c444
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __tests__/defaultProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
Expand Down
10 changes: 2 additions & 8 deletions www/docs/API/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ Estimate fee for invoke transaction.

<hr/>

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.

<hr/>

Expand Down Expand Up @@ -478,12 +478,6 @@ Gets the latest block number.

<hr/>

provider.**getNonce**(contractAddress, blockIdentifier) => _Promise < BigNumberish >_

Gets the nonce of the provided contractAddress

<hr/>

provider.**getPendingTransactions**() => _Promise < PendingTransactions >_

###### _PendingTransactions_
Expand Down

0 comments on commit b29c444

Please sign in to comment.