diff --git a/packages/sdk/src/transactions/Inscriber.ts b/packages/sdk/src/transactions/Inscriber.ts index a8b5f696..71d021b2 100644 --- a/packages/sdk/src/transactions/Inscriber.ts +++ b/packages/sdk/src/transactions/Inscriber.ts @@ -119,10 +119,12 @@ export class Inscriber extends PSBTBuilder { ] if (!this.recovery) { - this.outputs.push({ - address: this.destinationAddress || this.address, - value: this.postage - }) + this.outputs = [ + { + address: this.destinationAddress || this.address, + value: this.postage + } + ].concat(this.outputs) } if (this.recovery) { @@ -195,7 +197,7 @@ export class Inscriber extends PSBTBuilder { this.initPSBT() this.suitableUnspent = null this.ready = false - this.outputs.pop() + this.outputs.shift() this.previewMode = false } }