Skip to content

Commit 1005072

Browse files
Update for consistency with
After double check, `mosaicService .mosaicsAmountViewFromAddress` returns `duration: Object { lower: 0, higher: 0 }` for unlimited mosaics, this might be more consistent
1 parent 41e73c4 commit 1005072

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/infrastructure/transaction/CreateTransactionFromDTO.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
158158
new MosaicProperties(
159159
new UInt64(transactionDTO.properties[0].value),
160160
(new UInt64(transactionDTO.properties[1].value)).compact(),
161-
transactionDTO.properties.length === 3 ? new UInt64(transactionDTO.properties[2].value) : undefined,
161+
transactionDTO.properties.length === 3
162+
? new UInt64(transactionDTO.properties[2].value)
163+
: UInt64_1.UInt64.fromUint(0),
162164
),
163165
transactionDTO.signature,
164166
transactionDTO.signer ? PublicAccount.createFromPublicKey(transactionDTO.signer,

0 commit comments

Comments
 (0)