From 2fe65f20ca008f1a353fb66ab853eb3c58f1dd54 Mon Sep 17 00:00:00 2001 From: Stephan Cilliers <5469870+stephancill@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:14:52 +0200 Subject: [PATCH] fix: UNIX timestamp in milliseconds in farcaster untrusted data --- .changeset/good-buckets-work.md | 5 +++++ packages/render/src/farcaster/frames.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/good-buckets-work.md diff --git a/.changeset/good-buckets-work.md b/.changeset/good-buckets-work.md new file mode 100644 index 000000000..0996422f5 --- /dev/null +++ b/.changeset/good-buckets-work.md @@ -0,0 +1,5 @@ +--- +"@frames.js/render": patch +--- + +fix: UNIX timestamp in milliseconds in farcaster untrusted data diff --git a/packages/render/src/farcaster/frames.tsx b/packages/render/src/farcaster/frames.tsx index 271b5c63f..9341fc322 100644 --- a/packages/render/src/farcaster/frames.tsx +++ b/packages/render/src/farcaster/frames.tsx @@ -82,7 +82,7 @@ export const signFrameAction: SignFrameActionFunc = async ( fid: signer.fid, url, messageHash: `0x${Buffer.from(message.hash).toString("hex")}`, - timestamp: message.data.timestamp, + timestamp: new Date().getTime(), network: 1, buttonIndex: Number(message.data.frameActionBody.buttonIndex), castId: {