Skip to content

Commit

Permalink
fix(sdk): compare with sats value instead of BTC value (#46)
Browse files Browse the repository at this point in the history
fix: compare with sats value instead of BTC value
  • Loading branch information
iamcrazycoder authored Aug 16, 2023
1 parent 39ebcc8 commit 1403ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/transactions/OrdTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export class OrdTransaction {
type: this.#safeMode === "on" ? "spendable" : "all"
})

const suitableUTXO = utxos.find((utxo) => utxo.value >= amount)
const suitableUTXO = utxos.find((utxo) => utxo.sats >= amount)
if (!suitableUTXO) {
throw new Error("No suitable unspent found for reveal.")
}
Expand Down

0 comments on commit 1403ec9

Please sign in to comment.