Skip to content

Commit

Permalink
Remove untrusted timestamp check (#758)
Browse files Browse the repository at this point in the history
* Remove untrusted timestamp check

* Create four-lemons-listen.md
  • Loading branch information
rygine authored Dec 19, 2024
1 parent 80d5595 commit 2646e15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-lemons-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/frames-validator": patch
---

Remove untrusted timestamp check
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 2646e15

Please sign in to comment.