We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a991b0 commit 5dcb7b4Copy full SHA for 5dcb7b4
1 file changed
src/utils/get-checksum.ts
@@ -1,12 +1,12 @@
1
-import { addressToChecksum, loadBip39List } from 'human-readable-checksum';
+import { addressToChecksum, loadWordList } from 'human-readable-checksum';
2
3
let wordList: string[] = [];
4
5
export const getChecksum = async (address?: string): Promise<string | null> => {
6
if (!address) return null;
7
8
/** Load the bip39 word list, will be cached so only need to load once. */
9
- if (wordList.length === 0) wordList = await loadBip39List();
+ if (wordList.length === 0) wordList = loadWordList();
10
11
const checksum = addressToChecksum(address, wordList).join('-');
12
0 commit comments