@@ -243,21 +243,20 @@ export class MosaicAddressRestrictionTransaction extends Transaction {
243243 */
244244 resolveAliases ( statement : Statement , aggregateTransactionIndex : number = 0 ) : MosaicAddressRestrictionTransaction {
245245 const transactionInfo = this . checkTransactionHeightAndIndex ( ) ;
246- return new MosaicAddressRestrictionTransaction (
247- this . networkType ,
248- this . version ,
249- this . deadline ,
250- this . maxFee ,
251- statement . resolveMosaicId ( this . mosaicId , transactionInfo . height . toString ( ) ,
252- transactionInfo . index , aggregateTransactionIndex ) ,
253- this . restrictionKey ,
254- statement . resolveAddress ( this . targetAddress ,
255- transactionInfo . height . toString ( ) , transactionInfo . index , aggregateTransactionIndex ) ,
256- this . previousRestrictionValue ,
257- this . newRestrictionValue ,
258- this . signature ,
259- this . signer ,
260- this . transactionInfo ,
261- ) ;
246+ return Object . assign ( { __proto__ : Object . getPrototypeOf ( this ) } , this ,
247+ {
248+ mosaicId : statement . resolveMosaicId ( this . mosaicId , transactionInfo . height . toString ( ) ,
249+ transactionInfo . index , aggregateTransactionIndex ) ,
250+ targetAddress : statement . resolveAddress ( this . targetAddress ,
251+ transactionInfo . height . toString ( ) , transactionInfo . index , aggregateTransactionIndex ) } ) ;
252+ }
253+
254+ /**
255+ * Set transaction maxFee using fee multiplier
256+ * @param feeMultiplier The fee multiplier
257+ * @returns {MosaicAddressRestrictionTransaction }
258+ */
259+ public setMaxFee ( multiplier : number ) : MosaicAddressRestrictionTransaction {
260+ return Object . assign ( { __proto__ : Object . getPrototypeOf ( this ) } , this , { maxFee : UInt64 . fromUint ( this . size * multiplier ) } ) ;
262261 }
263262}
0 commit comments