-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
NodeModules: Unable to import ‘generateTestWallet’ #2617
Comments
Hey @goheesheng thanks for raising this issue. I'm sorry for the inconvenience caused here, we removed that documentation in release That being said, we use the const provider = await Provider.create(NODE_URL);
wallet = Wallet.generate({ provider });
localStorage.setItem('my-wallet-pk', wallet.privateKey); For more information, you can read here I was able to reproduce the issue you are facing locally, the error you're encountering is due to a version mismatch between the Regardless your setup is correct if you are testing in node, you can find a code snippet here Please let me know if this resolves your issue. |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days. |
This issue was closed because it is missing author input. |
What version of fuels-ts are you using?
^0.89.2
Steps to Reproduce
Hi, is there an update going on? Not sure why it doesn't work and the documentation page is down https://docs.fuel.network/docs/fuels-ts/wallets/test-wallets/#setting-up-test-wallets
This is the code and I am running the local fuel node.
This is the forum post: https://forum.fuel.network/t/nodemodules-unable-to-import-generatetestwallet/5859
Expected Behavior
Able to use
generateTestWallet
and create a test wallet variableActual Behavior
Error:
The text was updated successfully, but these errors were encountered: