Skip to content

Commit 70d8fc2

Browse files
set returned value back to undefined for unlimited mosaics duration
1 parent 1005072 commit 70d8fc2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/infrastructure/transaction/CreateTransactionFromDTO.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ 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
162-
? new UInt64(transactionDTO.properties[2].value)
163-
: UInt64_1.UInt64.fromUint(0),
161+
transactionDTO.properties.length === 3 && transactionDTO.properties[2].value ?
162+
new UInt64(transactionDTO.properties[2].value) : undefined,
164163
),
165164
transactionDTO.signature,
166165
transactionDTO.signer ? PublicAccount.createFromPublicKey(transactionDTO.signer,

0 commit comments

Comments
 (0)