Skip to content

Commit 3dad54c

Browse files
feat(sdk-coin-iota): adding address consolidation support for iota
Ticket: WIN-8245 TICKET: WIN-8245
1 parent 326b0dc commit 3dad54c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ export class Iota extends BaseCoin {
237237
return rebuiltTransaction.signablePayload;
238238
}
239239

240+
/**
241+
* @inheritDoc
242+
*/
243+
allowsAccountConsolidations(): boolean {
244+
return true;
245+
}
246+
240247
/**
241248
* Sets coin-specific fields in the transaction intent.
242249
* @param intent - The populated intent object to modify

modules/sdk-coin-iota/test/unit/iota.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ describe('IOTA:', function () {
4242
tiotaStatics.gasTankMinBalanceRecommendationFactor.should.equal(200);
4343
});
4444

45+
it('should support account consolidations', function () {
46+
basecoin.allowsAccountConsolidations().should.equal(true);
47+
});
48+
4549
it('is valid pub', function () {
4650
// with 0x prefix
4751
basecoin.isValidPub('0x9b4e96086d111500259f9b38680b0509a405c1904da18976455a20c691d3bb07').should.equal(false);

0 commit comments

Comments
 (0)