Skip to content

Commit

Permalink
docs(authorization): comment already set
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Dec 20, 2023
1 parent 3d55307 commit b2279f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Morpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ contract Morpho is IMorphoStaticTyping {

/// @inheritdoc IMorphoBase
function setAuthorizationWithSig(Authorization memory authorization, Signature calldata signature) external {
/// Do not check whether authorization is already set because the nonce increment is a desired side effect.
require(block.timestamp <= authorization.deadline, ErrorsLib.SIGNATURE_EXPIRED);
require(authorization.nonce == nonce[authorization.authorizer]++, ErrorsLib.INVALID_NONCE);

Expand Down

0 comments on commit b2279f2

Please sign in to comment.