diff --git a/lib/bitcoin/BitcoinClient.ts b/lib/bitcoin/BitcoinClient.ts index 90a7c64..af32a64 100644 --- a/lib/bitcoin/BitcoinClient.ts +++ b/lib/bitcoin/BitcoinClient.ts @@ -308,7 +308,7 @@ export default class BitcoinClient { private async loadWallet () { const request = { method: 'loadwallet', - params: [this.walletNameToUse, true] // the wallet name + params: [this.walletNameToUse] // the wallet name }; // Intentionally not throwing because bitcoin returns 500 when a wallet is already loaded diff --git a/tests/bitcoin/BitcoinClient.spec.ts b/tests/bitcoin/BitcoinClient.spec.ts index cd325b4..b467f6f 100644 --- a/tests/bitcoin/BitcoinClient.spec.ts +++ b/tests/bitcoin/BitcoinClient.spec.ts @@ -412,7 +412,7 @@ describe('BitcoinClient', async () => { await bitcoinClient['loadWallet'](); expect(rpcSpy).toHaveBeenCalledWith({ method: 'loadwallet', - params: ['sidetreeDefaultWallet', true] + params: ['sidetreeDefaultWallet'] }, true, false); expect(loggerSpy).toHaveBeenCalledWith(`Wallet loaded with name "sidetreeDefaultWallet".`); });