Skip to content

Commit 9bf90a5

Browse files
committed
fix(sdk-coin-dot): correct order of address retrieval
Ticket: WP-5728
1 parent 6ca11a2 commit 9bf90a5

File tree

1 file changed

+6
-6
lines changed
  • modules/sdk-coin-dot/src

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ export class Dot extends BaseCoin {
677677

678678
if (verification?.consolidationToBaseAddress) {
679679
// Verify funds are sent to wallet's base address for consolidation
680-
const baseAddress = wallet?.coinSpecific()?.baseAddress || wallet?.coinSpecific()?.rootAddress;
680+
const baseAddress = wallet?.coinSpecific()?.rootAddress || wallet?.coinSpecific()?.baseAddress;
681681
if (!baseAddress) {
682682
throw new Error('Unable to determine base address for consolidation');
683683
}
@@ -697,11 +697,11 @@ export class Dot extends BaseCoin {
697697
throw new Error('missing recipients in txParams');
698698
}
699699

700-
if (Array.isArray(txParams.recipients) && txParams.recipients.length > 1) {
701-
throw new Error(
702-
`${this.getChain()} doesn't support sending to more than 1 destination address within a single transaction. Try again, using only a single recipient.`
703-
);
704-
}
700+
if (Array.isArray(txParams.recipients) && txParams.recipients.length > 1) {
701+
throw new Error(
702+
`${this.getChain()} doesn't support sending to more than 1 destination address within a single transaction. Try again, using only a single recipient.`
703+
);
704+
}
705705

706706
// validate recipient is same as txBuilder['_to']
707707
if (txParams.recipients[0].address !== txBuilder['_to']) {

0 commit comments

Comments
 (0)