Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkendall committed Jan 12, 2024
1 parent 73b8d97 commit 5276015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/translucent/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -849,9 +849,9 @@ export class Tx {
i+=1;
}
utxoAdaSearch.sort((x, y)=>x[1]-y[1])
console.log("Best ada amount: ", utxoAdaSearch[utxoAdaSearch.length][1])
console.log("Best ada amount: ", utxoAdaSearch[utxoAdaSearch.length-1][1])

const adaInput = walletUTxOs[utxoAdaSearch[utxoAdaSearch.length][0]]
const adaInput = walletUTxOs[utxoAdaSearch[utxoAdaSearch.length-1][0]]
this.txBuilder.add_input(C.SingleInputBuilder.new(adaInput.input(), adaInput.output()).payment_key())
this.txBuilder.select_utxos(2);

Expand Down

0 comments on commit 5276015

Please sign in to comment.