bip39
bip39 copied to clipboard
Can't get mnemonic
I called this function btw I received
{“_40”:0,”_65”:0,”_55”:null,”_72”:null}
generateMnemonic = async () => {
try {
return await bip39.generateMnemonic(256) // default to 128
} catch(e) {
return false
}
}
//=> {“_40”:0,”_65”:0,”_55”:null,”_72”:null}
Could you help me? Looking forward to your reply. Thanks.
What do you get if you call (normally) bip39.generateMnemonic()?
{“_40”:0,”_65”:0,”_55”:null,”_72”:null}
any update?
@iosandroidwebtopdev need more information than that, at this stage, I have no idea.
@dcousens , Same error in my side, too
What is your environment? Node version?
anyone solved this issue, please reply. Thanks.
@devsarosh how are you producing this error?
Hi,
If your are implementing the fork for react native, you have to do something like this.

{“_40”:0,”_65”:0,”_55”:null,”_72”:null}
The above is a Promise and you should wait for its value via either await or .then(function(data) { /* use recieved value here */})
I suggest closing this issue. Separate issues could be created if someone want's to add a FAQ with things like the above, or if there is any code or documentation that should be updated.