Skip to content

Commit

Permalink
Set default arg value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Cardona committed Aug 21, 2019
1 parent cff43d0 commit 4c9ee52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Util {
// Or 0 if no funds are found, otherwise:
// Returns an object containing the amount of BCH swept from address,
// and the txid of the generated transaction that swept the funds.
async sweep(wif: string, toAddr: string, balanceOnly: boolean) {
async sweep(wif: string, toAddr: string, balanceOnly: boolean = false) {
try {
// Input validation
if (!wif || wif === "") {
Expand Down

0 comments on commit 4c9ee52

Please sign in to comment.