mirror of
https://github.com/Instadapp/dsa-periphery-contract.git
synced 2024-07-29 22:27:13 +00:00
chg: deadline check !review
Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
parent
c2c087bbe4
commit
c0f97ca040
|
@ -102,7 +102,7 @@ contract InstadappAdapter is EIP712 {
|
|||
require(!sigReplayProtection[salt], "Replay Attack");
|
||||
|
||||
// check if signature is not expired
|
||||
require(block.timestamp <= deadline, "Signature Expired");
|
||||
require(block.timestamp < deadline, "Signature Expired");
|
||||
|
||||
// check if signature is valid, and not replayed
|
||||
require(verify(auth, signature, castData, salt, deadline), "Invalid signature");
|
||||
|
|
Loading…
Reference in New Issue
Block a user