@@ -117,12 +117,13 @@ export const CreateTransactionFromDTO = (transactionDTO): Transaction => {
117
117
* @constructor
118
118
*/
119
119
const CreateStandaloneTransactionFromDTO = ( transactionDTO , transactionInfo ) : Transaction => {
120
+
120
121
if ( transactionDTO . type === TransactionType . TRANSFER ) {
121
122
return new TransferTransaction (
122
123
extractNetworkType ( transactionDTO . version ) ,
123
124
extractTransactionVersion ( transactionDTO . version ) ,
124
125
Deadline . createFromDTO ( transactionDTO . deadline ) ,
125
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
126
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
126
127
extractRecipient ( transactionDTO . recipient ) ,
127
128
extractMosaics ( transactionDTO . mosaics ) ,
128
129
extractMessage ( transactionDTO . message !== undefined ? transactionDTO . message . payload : undefined ) ,
@@ -136,7 +137,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
136
137
extractNetworkType ( transactionDTO . version ) ,
137
138
extractTransactionVersion ( transactionDTO . version ) ,
138
139
Deadline . createFromDTO ( transactionDTO . deadline ) ,
139
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
140
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
140
141
transactionDTO . namespaceType ,
141
142
transactionDTO . name ,
142
143
new NamespaceId ( transactionDTO . namespaceId ) ,
@@ -152,7 +153,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
152
153
extractNetworkType ( transactionDTO . version ) ,
153
154
extractTransactionVersion ( transactionDTO . version ) ,
154
155
Deadline . createFromDTO ( transactionDTO . deadline ) ,
155
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
156
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
156
157
transactionDTO . nonce ,
157
158
new MosaicId ( transactionDTO . mosaicId ) ,
158
159
new MosaicProperties (
@@ -171,7 +172,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
171
172
extractNetworkType ( transactionDTO . version ) ,
172
173
extractTransactionVersion ( transactionDTO . version ) ,
173
174
Deadline . createFromDTO ( transactionDTO . deadline ) ,
174
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
175
+ new UInt64 ( transactionDTO . maxFee ) ,
175
176
new MosaicId ( transactionDTO . mosaicId ) ,
176
177
transactionDTO . direction ,
177
178
new UInt64 ( transactionDTO . delta ) ,
@@ -185,7 +186,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
185
186
extractNetworkType ( transactionDTO . version ) ,
186
187
extractTransactionVersion ( transactionDTO . version ) ,
187
188
Deadline . createFromDTO ( transactionDTO . deadline ) ,
188
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
189
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
189
190
transactionDTO . minApprovalDelta ,
190
191
transactionDTO . minRemovalDelta ,
191
192
transactionDTO . modifications ? transactionDTO . modifications . map ( ( modificationDTO ) => new MultisigCosignatoryModification (
@@ -203,7 +204,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
203
204
networkType ,
204
205
extractTransactionVersion ( transactionDTO . version ) ,
205
206
Deadline . createFromDTO ( transactionDTO . deadline ) ,
206
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
207
+ new UInt64 ( transactionDTO . maxFee ) ,
207
208
new Mosaic ( new MosaicId ( transactionDTO . mosaicId ) , new UInt64 ( transactionDTO . amount ) ) ,
208
209
new UInt64 ( transactionDTO . duration ) ,
209
210
new SignedTransaction ( '' , transactionDTO . hash , '' , TransactionType . AGGREGATE_BONDED , networkType ) ,
@@ -217,7 +218,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
217
218
extractNetworkType ( transactionDTO . version ) ,
218
219
extractTransactionVersion ( transactionDTO . version ) ,
219
220
Deadline . createFromDTO ( transactionDTO . deadline ) ,
220
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
221
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
221
222
new Mosaic ( new MosaicId ( transactionDTO . mosaicId ) , new UInt64 ( transactionDTO . amount ) ) ,
222
223
new UInt64 ( transactionDTO . duration ) ,
223
224
transactionDTO . hashAlgorithm ,
@@ -234,7 +235,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
234
235
extractNetworkType ( transactionDTO . version ) ,
235
236
extractTransactionVersion ( transactionDTO . version ) ,
236
237
Deadline . createFromDTO ( transactionDTO . deadline ) ,
237
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
238
+ new UInt64 ( transactionDTO . maxFee ) ,
238
239
transactionDTO . hashAlgorithm ,
239
240
transactionDTO . secret ,
240
241
transactionDTO . proof ,
@@ -248,7 +249,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
248
249
extractNetworkType ( transactionDTO . version ) ,
249
250
extractTransactionVersion ( transactionDTO . version ) ,
250
251
Deadline . createFromDTO ( transactionDTO . deadline ) ,
251
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
252
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
252
253
transactionDTO . aliasAction ,
253
254
new NamespaceId ( transactionDTO . namespaceId ) ,
254
255
new MosaicId ( transactionDTO . mosaicId ) ,
@@ -262,7 +263,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
262
263
extractNetworkType ( transactionDTO . version ) ,
263
264
extractTransactionVersion ( transactionDTO . version ) ,
264
265
Deadline . createFromDTO ( transactionDTO . deadline ) ,
265
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
266
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
266
267
transactionDTO . aliasAction ,
267
268
new NamespaceId ( transactionDTO . namespaceId ) ,
268
269
extractRecipient ( transactionDTO . address ) as Address ,
@@ -276,7 +277,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
276
277
extractNetworkType ( transactionDTO . version ) ,
277
278
extractTransactionVersion ( transactionDTO . version ) ,
278
279
Deadline . createFromDTO ( transactionDTO . deadline ) ,
279
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
280
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
280
281
transactionDTO . propertyType ,
281
282
transactionDTO . modifications ? transactionDTO . modifications . map ( ( modificationDTO ) => new AccountPropertyModification (
282
283
modificationDTO . modificationType ,
@@ -292,7 +293,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
292
293
extractNetworkType ( transactionDTO . version ) ,
293
294
extractTransactionVersion ( transactionDTO . version ) ,
294
295
Deadline . createFromDTO ( transactionDTO . deadline ) ,
295
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
296
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
296
297
transactionDTO . propertyType ,
297
298
transactionDTO . modifications ? transactionDTO . modifications . map ( ( modificationDTO ) => new AccountPropertyModification (
298
299
modificationDTO . modificationType ,
@@ -308,7 +309,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
308
309
extractNetworkType ( transactionDTO . version ) ,
309
310
extractTransactionVersion ( transactionDTO . version ) ,
310
311
Deadline . createFromDTO ( transactionDTO . deadline ) ,
311
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
312
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
312
313
transactionDTO . propertyType ,
313
314
transactionDTO . modifications ? transactionDTO . modifications . map ( ( modificationDTO ) => new AccountPropertyModification (
314
315
modificationDTO . modificationType ,
@@ -324,7 +325,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr
324
325
extractNetworkType ( transactionDTO . version ) ,
325
326
extractTransactionVersion ( transactionDTO . version ) ,
326
327
Deadline . createFromDTO ( transactionDTO . deadline ) ,
327
- UInt64 . fromUint ( transactionDTO . maxFee || 0 ) ,
328
+ new UInt64 ( transactionDTO . maxFee || [ 0 , 0 ] ) ,
328
329
transactionDTO . remoteAccountKey ,
329
330
transactionDTO . linkAction ,
330
331
transactionDTO . signature ,
0 commit comments