From 0ef72d5d5e3e8421369a75f769b35b2184993c22 Mon Sep 17 00:00:00 2001 From: ayman Date: Sat, 1 Jun 2024 18:21:06 +0530 Subject: [PATCH] chore: remove type casting --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 33c1e47..68a8729 100644 --- a/src/index.ts +++ b/src/index.ts @@ -154,7 +154,7 @@ function getLibraryFromEncoding(encoding: 'bech32' | 'bech32m'): BechLib { let chk = prefixChk(prefix); if (typeof chk === 'string') return chk; - const words = [] as number[]; + const words = []; for (let i = 0; i < wordChars.length; ++i) { const c = wordChars.charAt(i); const v = ALPHABET_MAP[c];