mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user