expo-eth-wallet
expo-eth-wallet copied to clipboard
Generate Mnemonic Error
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](https://user-images.githubusercontent.com/502625/89749877-3e61d980-da8f-11ea-80e7-604a941ca913.png)
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?