expo-eth-wallet icon indicating copy to clipboard operation
expo-eth-wallet copied to clipboard

Generate Mnemonic Error

Open JustinSeidl opened this issue 3 years ago • 0 comments

Hi Jason,

I've used your repository to setup first Ethereum wallet in React Native. I thought I was on the right track but seem to be at a roadblock with the following error:

[Unhandled promise rejection: TypeError: undefined is not an object (evaluating '_ethers.ethers.HDNode.entropyToMnemonic')]

  • lib/ethereum/wallet.ts:13:26 in generateMnemonics
  • lib/ethereum/wallet.ts:33:28 in createWallet
Screen Shot 2020-08-09 at 10 23 48 PM

The issue stems from the following method:

const generateMnemonics = () => {
  return ethers.utils.HDNode.entropyToMnemonic(ethers.utils.randomBytes(16)).split(' ')
}

Do you have any ideas on how I can fix?

JustinSeidl avatar Aug 10 '20 03:08 JustinSeidl