From b24d170afd34e9342184c22f34474d0d73046eb3 Mon Sep 17 00:00:00 2001 From: Nishant Ghodke Date: Thu, 27 Jul 2023 10:48:44 +0530 Subject: [PATCH] fix: prevent custom output in recovery mode --- packages/sdk/src/transactions/OrdTransaction.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/sdk/src/transactions/OrdTransaction.ts b/packages/sdk/src/transactions/OrdTransaction.ts index 4514dc11..e39ceb69 100644 --- a/packages/sdk/src/transactions/OrdTransaction.ts +++ b/packages/sdk/src/transactions/OrdTransaction.ts @@ -119,11 +119,11 @@ export class OrdTransaction { address: this.destinationAddress, value: this.postage }); - } - this.#outs.forEach((out) => { - psbt.addOutput(out); - }); + this.#outs.forEach((out) => { + psbt.addOutput(out); + }); + } if (change > 600) { let changeAddress = this.#inscribePayTx.address;