fix: invalid auth condition check

This commit is contained in:
sanchaymittal 2023-05-04 16:38:32 +09:00
parent 6f61001419
commit 9c75cdc05a
No known key found for this signature in database
GPG Key ID: D794EEBC262F179E

View File

@ -69,7 +69,7 @@ contract InstadappAdapter is EIP712 {
) internal { ) internal {
IDSA dsa = IDSA(dsaAddress); IDSA dsa = IDSA(dsaAddress);
// check if Auth is valid, and included in the DSA // 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 // check if signature is not replayed
require(!sigReplayProtection[salt], "Replay Attack"); require(!sigReplayProtection[salt], "Replay Attack");