Skip to content

Commit

Permalink
Remove padStart from toDigest
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Aug 2, 2023
1 parent 5858421 commit 393a170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/id.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function toDigest(value) {
const copy = canonicalize({ ...value });
const canonical = encode(copy);
const digest = toHex(keccak256(canonical));
const index = `${value.timestamp.toString(16).padStart(8, "0")}${digest}`;
const index = `${value.timestamp.toString(16)}${digest}`;
return {
digest,
canonical,
Expand Down

0 comments on commit 393a170

Please sign in to comment.