cosmostation / cosmosjs

:star: CosmosJS - Cosmos JavaScript Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with bip39

atmoner opened this issue · comments

Hello and thank you for your lib!
I have encountered a problem since the update to 0.10, there is a problem with the bip39 class, the call made by the Cosmos class to bip39 returns this error:

Screenshot_20210514_184919

When I look in the source of src/index.js, line 38, I do a console.log(bip39), like:

Screenshot_20210514_185359

I have this result:

Screenshot_20210514_185628

I notice right away that the class starts with "Default", just add default to each call of bip39, bip32 and bech32
Like this:

Screenshot_20210514_185812

I forked the project, I made the changes and everything works (atmoner@ead38c0)!
Do you want me to do a pull request?

Thanks! I merged it. 😃
#95