wallet: remove watchOnly check from wallet.fund
This commit is contained in:
parent
8c609c6e9e
commit
339dd50bf1
@ -1101,9 +1101,6 @@ class Wallet extends EventEmitter {
|
|||||||
if (!options)
|
if (!options)
|
||||||
options = {};
|
options = {};
|
||||||
|
|
||||||
if (this.watchOnly)
|
|
||||||
throw new Error('Cannot fund from watch-only wallet.');
|
|
||||||
|
|
||||||
const acct = options.account || 0;
|
const acct = options.account || 0;
|
||||||
const change = await this.changeAddress(acct);
|
const change = await this.changeAddress(acct);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user