From e8d97a1e1597a8ab3cd94e9a464097e9ee7d6061 Mon Sep 17 00:00:00 2001 From: msinkec Date: Fri, 1 Dec 2023 16:06:22 +0100 Subject: [PATCH] Fix purchase price. --- src/contracts/bsv20ZeroCouponBond.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/bsv20ZeroCouponBond.ts b/src/contracts/bsv20ZeroCouponBond.ts index 324d030c..12971893 100644 --- a/src/contracts/bsv20ZeroCouponBond.ts +++ b/src/contracts/bsv20ZeroCouponBond.ts @@ -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')