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: {