ERC20Permit extensions allows approvals to be made via signatures, as defined in
permit function can be used to change an account's ERC20 allowance (IERC20-allowance) by
presenting a message signed by the account. By not relying on (IERC20-approve), the token holder account doesn't
need to send a transaction and thus is not required to hold Ether at all.
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.
The ERC721A contract comes with a
function that returns the total number of NFTs that have been minted in the collection (including tokens that have been burned).
This means you can already view the total Permit of NFTs in the collection by implementing the
You can optionally override the functionality of this function as outlined below: