Skip to content

Commit

Permalink
fix bug in Output construction
Browse files Browse the repository at this point in the history
  • Loading branch information
vinarmani committed Nov 1, 2021
1 parent 5940822 commit 9167a61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/primitives/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ class Output {
if (options.address)
this.script.fromAddress(options.address);

if (options.slp.constructor === SLP.SlpCoinRecord().constructor)
this.slp = options.slp
if (options.slp) {
if (options.slp.constructor === SLP.SlpCoinRecord().constructor)
this.slp = options.slp
}

return this;
}
Expand Down

0 comments on commit 9167a61

Please sign in to comment.