mirror of https://github.com/vacp2p/minime.git
remove unused code from Nonces
This commit is contained in:
parent
6642de6bbb
commit
d4ad61b935
|
@ -1,7 +1,7 @@
|
|||
| contracts/MiniMeToken.sol:MiniMeToken contract | | | | | |
|
||||
|------------------------------------------------|-----------------|-------|--------|-------|---------|
|
||||
| Deployment Cost | Deployment Size | | | | |
|
||||
| 2088237 | 11855 | | | | |
|
||||
| 1994000 | 11855 | | | | |
|
||||
| Function Name | min | avg | median | max | # calls |
|
||||
| DOMAIN_SEPARATOR | 387 | 387 | 387 | 387 | 10 |
|
||||
| allowance | 0 | 190 | 0 | 763 | 16 |
|
||||
|
|
|
@ -32,14 +32,4 @@ abstract contract Nonces {
|
|||
return _nonces[owner]++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
|
||||
*/
|
||||
function _useCheckedNonce(address owner, uint256 nonce) internal virtual {
|
||||
uint256 current = _useNonce(owner);
|
||||
if (nonce != current) {
|
||||
revert InvalidAccountNonce(owner, current);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue