unisat-wallet / wallet-sdk

ISC License
43 stars 26 forks source link

Fix LocalWallet fromMnemonic method #7

Closed howdyfrom2019 closed 5 months ago

howdyfrom2019 commented 6 months ago

It is impossible to create local wallet with fromMnemonic method. I think the problem come from HDKeyring.getAccounts method. it is just returning Promise<string[]>. but inside of fromMnemonic, it accessing the privatekey property.

If it possible can i make a pr and handle this issue?