From 2646e15cd1f6eb024dec7f6840b7e665f31c2c2e Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 18 Dec 2024 18:31:11 -0600 Subject: [PATCH] Remove untrusted timestamp check (#758) * Remove untrusted timestamp check * Create four-lemons-listen.md --- .changeset/four-lemons-listen.md | 5 +++++ packages/frames-validator/src/validation.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) 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 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"); }