Skip to content

Commit

Permalink
Update src/utils/num.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Petar Penović <[email protected]>
  • Loading branch information
tabaktoni and penovicp authored Sep 16, 2024
1 parent ea8dca1 commit 9bc18d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/num.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const toHexString = toHex;
* @returns format: storage-key-string
*/
export function toStorageKey(number: BigNumberish): string {
// TODO: This is not completly correct as it will not enforce first 0 and second [0-7], 0x82bda... will pass as valid and should be false
// TODO: This is not completely correct as it will not enforce first 0 and second [0-7], 0x82bda... will pass as valid and should be false
return addHexPrefix(toBigInt(number).toString(16).padStart(64, '0'));
}

Expand Down

0 comments on commit 9bc18d9

Please sign in to comment.