Skip to content

Commit

Permalink
fix: update return type from splitting utxos function
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed Dec 4, 2024
1 parent 5e1049c commit 8d616c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/utils/src/utils/split-utxos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function splitUTXOs(
balance: BN,
amount: BN,
assetId: string,
destinationAddress: AbstractAddress,
destination: AbstractAddress,
number_of_coins: number = 2
): { amount: BN; assetId: string; destination: string }[] {
if (balance.lte(0)) {
Expand All @@ -18,6 +18,6 @@ export function splitUTXOs(
return new Array(splitInto).fill({
amount,
assetId,
destinationAddress,
destination,
});
}

0 comments on commit 8d616c7

Please sign in to comment.