Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get mnemonic #88

Open
mobilewebguru opened this issue Sep 18, 2018 · 10 comments
Open

Can't get mnemonic #88

mobilewebguru opened this issue Sep 18, 2018 · 10 comments

Comments

@mobilewebguru
Copy link

mobilewebguru commented Sep 18, 2018

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.

@dcousens
Copy link
Contributor

dcousens commented Sep 18, 2018

What do you get if you call (normally) bip39.generateMnemonic()?

@mobilewebguru
Copy link
Author

{“_40”:0,”_65”:0,”_55”:null,”_72”:null}

@mobilewebguru
Copy link
Author

any update?

@dcousens
Copy link
Contributor

@iosandroidwebtopdev need more information than that, at this stage, I have no idea.

@liorbraginsky92
Copy link

@dcousens , Same error in my side, too

@dcousens
Copy link
Contributor

What is your environment? Node version?

@devsarosh
Copy link

anyone solved this issue, please reply. Thanks.

@dcousens
Copy link
Contributor

dcousens commented Nov 6, 2018

@devsarosh how are you producing this error?

@McDreamy
Copy link

Hi,

If your are implementing the fork for react native, you have to do something like this.

screen shot 2018-11-16 at 6 41 34 pm

@sesam
Copy link

sesam commented Dec 17, 2018

{“_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@sesam @dcousens @McDreamy @mobilewebguru @liorbraginsky92 @devsarosh and others