Skip to content

Commit 5dcb7b4

Browse files
committed
fix: checkphrase API
1 parent 6a991b0 commit 5dcb7b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/get-checksum.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { addressToChecksum, loadBip39List } from 'human-readable-checksum';
1+
import { addressToChecksum, loadWordList } from 'human-readable-checksum';
22

33
let wordList: string[] = [];
44

55
export const getChecksum = async (address?: string): Promise<string | null> => {
66
if (!address) return null;
77

88
/** Load the bip39 word list, will be cached so only need to load once. */
9-
if (wordList.length === 0) wordList = await loadBip39List();
9+
if (wordList.length === 0) wordList = loadWordList();
1010

1111
const checksum = addressToChecksum(address, wordList).join('-');
1212

0 commit comments

Comments
 (0)