From 27d4e38176024de3dc6824e8c2554b6eddfa545a Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 18 Dec 2024 18:26:02 -0600 Subject: [PATCH 1/2] Remove untrusted timestamp check --- packages/frames-validator/src/validation.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/frames-validator/src/validation.ts b/packages/frames-validator/src/validation.ts index f69c1f93..a6906fe0 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"); } From f05889ca409708b2250b2286025d1f903475ae2b Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 18 Dec 2024 18:26:47 -0600 Subject: [PATCH 2/2] Create four-lemons-listen.md --- .changeset/four-lemons-listen.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/four-lemons-listen.md diff --git a/.changeset/four-lemons-listen.md b/.changeset/four-lemons-listen.md new file mode 100644 index 00000000..8cb44685 --- /dev/null +++ b/.changeset/four-lemons-listen.md @@ -0,0 +1,5 @@ +--- +"@xmtp/frames-validator": patch +--- + +Remove untrusted timestamp check