From 9c75cdc05af59ed049f5c0196f7afe8fc4b01cd0 Mon Sep 17 00:00:00 2001 From: sanchaymittal Date: Thu, 4 May 2023 16:38:32 +0900 Subject: [PATCH] fix: invalid auth condition check --- contracts/InstadappAdapter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/InstadappAdapter.sol b/contracts/InstadappAdapter.sol index 38bbdcd..b5893fb 100644 --- a/contracts/InstadappAdapter.sol +++ b/contracts/InstadappAdapter.sol @@ -69,7 +69,7 @@ contract InstadappAdapter is EIP712 { ) internal { IDSA dsa = IDSA(dsaAddress); // check if Auth is valid, and included in the DSA - require(auth != address(0) || dsa.isAuth(auth), "Invalid Auth"); + require(auth != address(0) && dsa.isAuth(auth), "Invalid Auth"); // check if signature is not replayed require(!sigReplayProtection[salt], "Replay Attack");