chg: additional condition check for auth address !review

This commit is contained in:
sanchaymittal 2023-05-04 16:10:57 +09:00
parent 31bc8bc660
commit 6f61001419
No known key found for this signature in database
GPG Key ID: D794EEBC262F179E

View File

@ -69,7 +69,7 @@ contract InstadappAdapter is EIP712 {
) internal {
IDSA dsa = IDSA(dsaAddress);
// check if Auth is valid, and included in the DSA
require(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");