Skip to content

Commit 5644b36

Browse files
Merge pull request #6554 from BitGo/COIN-4925-fix-consolidation-issue
fix(sdk-coin-vet): fix issue with consolidation tx
2 parents 959567b + bd7c37e commit 5644b36

File tree

1 file changed

+2
-1
lines changed
  • modules/sdk-coin-vet/src

1 file changed

+2
-1
lines changed

modules/sdk-coin-vet/src/vet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class Vet extends BaseCoin {
9494
if (!explainedTx) {
9595
throw new Error('failed to explain transaction');
9696
}
97-
if (txParams.recipients !== undefined) {
97+
if (txParams.recipients !== undefined && txParams.recipients.length > 0) {
9898
const filteredRecipients = txParams.recipients?.map((recipient) => {
9999
return {
100100
address: recipient.address,
@@ -107,6 +107,7 @@ export class Vet extends BaseCoin {
107107
amount: BigInt(output.amount),
108108
};
109109
});
110+
110111
if (!_.isEqual(filteredOutputs, filteredRecipients)) {
111112
throw new Error('Tx outputs does not match with expected txParams recipients');
112113
}

0 commit comments

Comments
 (0)