We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 959567b + bd7c37e commit 5644b36Copy full SHA for 5644b36
modules/sdk-coin-vet/src/vet.ts
@@ -94,7 +94,7 @@ export class Vet extends BaseCoin {
94
if (!explainedTx) {
95
throw new Error('failed to explain transaction');
96
}
97
- if (txParams.recipients !== undefined) {
+ if (txParams.recipients !== undefined && txParams.recipients.length > 0) {
98
const filteredRecipients = txParams.recipients?.map((recipient) => {
99
return {
100
address: recipient.address,
@@ -107,6 +107,7 @@ export class Vet extends BaseCoin {
107
amount: BigInt(output.amount),
108
};
109
});
110
+
111
if (!_.isEqual(filteredOutputs, filteredRecipients)) {
112
throw new Error('Tx outputs does not match with expected txParams recipients');
113
0 commit comments