From 6dda29bb147781603cb680dbd020d9ad612f4090 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 9 Oct 2022 06:39:42 -0700 Subject: [PATCH] fixing create-wallet script --- production/scripts/create-wallet.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production/scripts/create-wallet.js b/production/scripts/create-wallet.js index 96ac396..e7a9a93 100644 --- a/production/scripts/create-wallet.js +++ b/production/scripts/create-wallet.js @@ -16,9 +16,9 @@ async function createWallet () { } // Wait for the wallet to be created. - this.bchWallet = new BchWallet(undefined, advancedConfig) - await this.bchWallet.walletInfoPromise - const walletData = this.bchWallet.walletInfo + const bchWallet = new BchWallet(undefined, advancedConfig) + await bchWallet.walletInfoPromise + const walletData = bchWallet.walletInfo walletData.nextAddress = 1 // Save the wallet file to disk.