]> git.codecow.com Git - libnemo.git/commitdiff
Revert as const since it prevents usage of some array functions.
authorChris Duncan <chris@codecow.com>
Mon, 3 Aug 2026 14:35:44 +0000 (07:35 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 3 Aug 2026 14:35:44 +0000 (07:35 -0700)
src/lib/constants.ts

index 753d7003065206a7bae093605fef105802b2261b..3729d89b0e1ceb50822f98b6df24fa24fc83daf8 100644 (file)
@@ -24,7 +24,7 @@ export const SEED_LENGTH_BIP44 = 128
 export const SEED_LENGTH_BLAKE2B = 64
 export const XNO = 'ΣΎ'
 
-export const UNITS: Record<string, number> = Object.freeze({
+export const UNITS = Object.freeze({
        RAW: 0,
        RAI: 24,
        NYANO: 24,
@@ -34,7 +34,7 @@ export const UNITS: Record<string, number> = Object.freeze({
        NANO: 30,
        KNANO: 33,
        MNANO: 36,
-} as const)
+})
 
 export const SCHEMA = Object.freeze({
        account_info: {
@@ -77,4 +77,4 @@ export const SCHEMA = Object.freeze({
                        'subtype',
                ],
        },
-} as const)
+})