Skip to content

Commit

Permalink
fix(authorization): revert already set error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Dec 18, 2023
1 parent b48b0cf commit 1d1a416
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Morpho.sol
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,6 @@ contract Morpho is IMorphoStaticTyping {

/// @inheritdoc IMorphoBase
function setAuthorizationWithSig(Authorization memory authorization, Signature calldata signature) external {
require(
authorization.isAuthorized != isAuthorized[authorization.authorizer][authorization.authorized],
ErrorsLib.ALREADY_SET
);
require(block.timestamp <= authorization.deadline, ErrorsLib.SIGNATURE_EXPIRED);
require(authorization.nonce == nonce[authorization.authorizer]++, ErrorsLib.INVALID_NONCE);

Expand Down

0 comments on commit 1d1a416

Please sign in to comment.