Skip to content

Commit

Permalink
fix: UNIX timestamp in milliseconds in farcaster untrusted data (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephancill authored Oct 4, 2024
1 parent b2f70cb commit b2f20d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-buckets-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@frames.js/render": patch
---

fix: UNIX timestamp in milliseconds in farcaster untrusted data
2 changes: 1 addition & 1 deletion packages/render/src/farcaster/frames.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const signFrameAction: SignFrameActionFunc<FarcasterSigner> = 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: {
Expand Down

0 comments on commit b2f20d6

Please sign in to comment.