Skip to content

Commit

Permalink
Fix purchase price.
Browse files Browse the repository at this point in the history
  • Loading branch information
msinkec committed Dec 1, 2023
1 parent ac21572 commit e8d97a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/bsv20ZeroCouponBond.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class Bsv20ZeroCouponBond extends BSV20V2 {
outputs += BSV20V2.buildTransferOutput(
pubKey2Addr(this.issuer),
this.id,
this.purchasePrice * utxoTokenAmt
this.purchasePrice
)
outputs += this.buildChangeOutput()
assert(hash256(outputs) == this.ctx.hashOutputs, 'hashOutputs mismatch')
Expand Down

0 comments on commit e8d97a1

Please sign in to comment.