mirror of
https://github.com/Instadapp/dsa-periphery-contract.git
synced 2024-07-29 22:27:13 +00:00
fix: invalid auth condition check
This commit is contained in:
parent
6f61001419
commit
9c75cdc05a
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user