INonces
Title: INonces
Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Nonces.sol)
Interface for tracking per-account nonces used in replay-protection schemes.
Functions
nonces
Returns the current nonce for the given owner.
function nonces(address owner) external view returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | The address to query. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 | The current nonce. |
Errors
InvalidAccountNonce
Thrown when an account nonce is used with an incorrect expected value.
error InvalidAccountNonce(address account, uint256 currentNonce);Parameters
| Name | Type | Description |
|---|---|---|
| account | address | The account whose nonce was checked. |
| currentNonce | uint256 | The current (correct) nonce for the account. |