Skip to content

Commit e2d2e8f

Browse files
Bugfix: handling of unlimited duration mosaics
Fix: Error when an unlimited duration mosaic MOSAIC_DEFINITION is fetched through `accountHttp.transactions` Reason: `new UInt64_1.UInt64(undefined is returned)` Bug reproduction: Use `accountHttp.transactions` on the following account: `AC1A6E1D8DE5B17D2C6B1293F1CAD3829EEACF38D09311BB3C8E5A880092DE26` The transaction hash with an unlimited duration mosaic: `"aggregateHash":"41AA28C4BEC707C09568AAA4C2CF432EE7F8B28E83BC8F5FE24DBF6A92A70042"`
1 parent 45dd754 commit e2d2e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infrastructure/transaction/CreateTransactionFromDTO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
158158
new MosaicProperties(
159159
new UInt64(transactionDTO.properties[0].value),
160160
(new UInt64(transactionDTO.properties[1].value)).compact(),
161-
new UInt64(transactionDTO.properties.length === 3 ? transactionDTO.properties[2].value : undefined),
161+
transactionDTO.properties.length === 3 ? new UInt64(transactionDTO.properties[2].value) : undefined,
162162
),
163163
transactionDTO.signature,
164164
transactionDTO.signer ? PublicAccount.createFromPublicKey(transactionDTO.signer,

0 commit comments

Comments
 (0)