From e73950ff22c25f4f54bce1a77e1ee5930a25ff12 Mon Sep 17 00:00:00 2001 From: Micah Kendall Date: Fri, 6 Sep 2024 03:35:14 +1000 Subject: [PATCH] fmt --- packages/blaze-tx/src/tx.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/blaze-tx/src/tx.ts b/packages/blaze-tx/src/tx.ts index 6c8478c8..5df62f1a 100644 --- a/packages/blaze-tx/src/tx.ts +++ b/packages/blaze-tx/src/tx.ts @@ -1263,9 +1263,17 @@ export class TxBuilder { // Gather all inputs from the transaction body. const inputs = [...this.body.inputs().values()]; // Perform initial checks and preparations for coin selection. - const preliminaryDraftTx = new Transaction(this.body, new TransactionWitnessSet()); - const preliminaryFee = this.params.minFeeConstant + fromHex(preliminaryDraftTx.toCbor()).length * this.params.minFeeCoefficient; - let excessValue = this.getPitch(bigintMax(BigInt(Math.ceil(preliminaryFee)), this.minimumFee)); + const preliminaryDraftTx = new Transaction( + this.body, + new TransactionWitnessSet(), + ); + const preliminaryFee = + this.params.minFeeConstant + + fromHex(preliminaryDraftTx.toCbor()).length * + this.params.minFeeCoefficient; + let excessValue = this.getPitch( + bigintMax(BigInt(Math.ceil(preliminaryFee)), this.minimumFee), + ); let spareInputs: TransactionUnspentOutput[] = []; for (const [utxo] of this.utxos.entries()) { if (!inputs.includes(utxo.input())) {