chg: deadline check !review

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
Sanchay Mittal 2023-05-04 15:47:48 +09:00 committed by GitHub
parent c2c087bbe4
commit c0f97ca040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ contract InstadappAdapter is EIP712 {
require(!sigReplayProtection[salt], "Replay Attack"); require(!sigReplayProtection[salt], "Replay Attack");
// check if signature is not expired // 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 // check if signature is valid, and not replayed
require(verify(auth, signature, castData, salt, deadline), "Invalid signature"); require(verify(auth, signature, castData, salt, deadline), "Invalid signature");