@@ -253,23 +253,10 @@ export class MosaicGlobalRestrictionTransaction extends Transaction {
253253 */
254254 resolveAliases ( statement : Statement , aggregateTransactionIndex : number = 0 ) : MosaicGlobalRestrictionTransaction {
255255 const transactionInfo = this . checkTransactionHeightAndIndex ( ) ;
256- return new MosaicGlobalRestrictionTransaction (
257- this . networkType ,
258- this . version ,
259- this . deadline ,
260- this . maxFee ,
261- statement . resolveMosaicId ( this . mosaicId , transactionInfo . height . toString ( ) ,
256+ return { ...Object . getPrototypeOf ( this ) ,
257+ mosaicId : statement . resolveMosaicId ( this . mosaicId , transactionInfo . height . toString ( ) ,
262258 transactionInfo . index , aggregateTransactionIndex ) ,
263- statement . resolveMosaicId ( this . referenceMosaicId , transactionInfo . height . toString ( ) ,
264- transactionInfo . index , aggregateTransactionIndex ) ,
265- this . restrictionKey ,
266- this . previousRestrictionValue ,
267- this . previousRestrictionType ,
268- this . newRestrictionValue ,
269- this . newRestrictionType ,
270- this . signature ,
271- this . signer ,
272- this . transactionInfo ,
273- ) ;
259+ referenceMosaicId : statement . resolveMosaicId ( this . referenceMosaicId , transactionInfo . height . toString ( ) ,
260+ transactionInfo . index , aggregateTransactionIndex ) } ;
274261 }
275262}
0 commit comments