Improve general documentation for 5.2 (#5310)

This commit is contained in:
Ernesto García
2024-11-21 22:43:13 +07:00
committed by GitHub
parent 7105693e3c
commit ccb39d2765
4 changed files with 8 additions and 8 deletions

View File

@ -35,8 +35,8 @@ abstract contract NoncesKeyed is Nonces {
* @dev Same as {_useNonce} but checking that `nonce` is the next valid for `owner`.
*
* This version takes the key and the nonce in a single uint256 parameter:
* - use the first 8 bytes for the key
* - use the last 24 bytes for the nonce
* - use the first 24 bytes for the key
* - use the last 8 bytes for the nonce
*/
function _useCheckedNonce(address owner, uint256 keyNonce) internal virtual override {
(uint192 key, ) = _unpack(keyNonce);