Skip to content

Commit

Permalink
Remove untrusted timestamp check
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Dec 19, 2024
1 parent 80d5595 commit 27d4e38
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/frames-validator/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function checkUntrustedData(
url,
buttonIndex,
opaqueConversationIdentifier,
timestamp,
state = "",
inputText = "",
}: UntrustedData,
Expand All @@ -138,10 +137,6 @@ function checkUntrustedData(
throw new Error("Mismatched conversation identifier");
}

if (actionBody.timestamp.toNumber() !== timestamp) {
throw new Error("Mismatched timestamp");
}

if (actionBody.state !== state) {
throw new Error("Mismatched state");
}
Expand Down

0 comments on commit 27d4e38

Please sign in to comment.