diff --git a/.changeset/four-lemons-listen.md b/.changeset/four-lemons-listen.md new file mode 100644 index 000000000..8cb44685d --- /dev/null +++ b/.changeset/four-lemons-listen.md @@ -0,0 +1,5 @@ +--- +"@xmtp/frames-validator": patch +--- + +Remove untrusted timestamp check diff --git a/packages/frames-validator/src/validation.ts b/packages/frames-validator/src/validation.ts index f69c1f937..a6906fe05 100644 --- a/packages/frames-validator/src/validation.ts +++ b/packages/frames-validator/src/validation.ts @@ -118,7 +118,6 @@ function checkUntrustedData( url, buttonIndex, opaqueConversationIdentifier, - timestamp, state = "", inputText = "", }: UntrustedData, @@ -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"); }