Update get-acct-info.js

The call to initiate a new wallet (through fundWallet) must not include parameters.
The previous version of the code gives error: ReferenceError: Cannot access 'test_wallet' before initialization
This commit is contained in:
Jyri Hovila
2021-11-14 20:22:47 +02:00
committed by GitHub
parent c5bc5c9b78
commit 6cab63408e

View File

@@ -10,7 +10,7 @@ async function main() {
await client.connect()
// Create a wallet and fund it with the Testnet faucet:
const fund_result = await client.fundWallet(test_wallet)
const fund_result = await client.fundWallet()
const test_wallet = fund_result.wallet
console.log(fund_result)