We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
current example in hello world throws errors because wallet is a promise.
import { MeshWallet } from '@meshsdk/core'; import fs from 'node:fs'; const secret_key = MeshWallet.brew(true) as string; fs.writeFileSync('me.sk', secret_key); const wallet = new MeshWallet({ networkId: 0, key: { type: 'root', bech32: secret_key, }, }); fs.writeFileSync('me.addr', wallet.getUnusedAddresses()[0]);
change to
wallet .getUnusedAddresses() .then((addresses) => { fs.writeFileSync("me.addr", addresses[0]); }) .catch((error) => { console.error("Error generating address:", error); });
The text was updated successfully, but these errors were encountered:
Nice catch, PR welcome 👌
Sorry, something went wrong.
No branches or pull requests
current example in hello world throws errors because wallet is a promise.
change to
The text was updated successfully, but these errors were encountered: