Skip to content

Commit

Permalink
fix: floor update feed timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Jun 17, 2024
1 parent 79fa83c commit ced6d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feed/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export async function updateFeed(

const identifier = makeFeedIdentifier(topic, nextIndex)
const at = options?.at ?? Date.now() / 1000.0
const timestamp = Binary.numberToUint64BE(at)
const timestamp = Binary.numberToUint64BE(Math.floor(at))
const payloadBytes = Binary.concatBytes(timestamp, reference)

return uploadSingleOwnerChunkData(requestOptions, signer, postageBatchId, identifier, payloadBytes, options)
Expand Down

0 comments on commit ced6d26

Please sign in to comment.