@@ -38,7 +38,7 @@ export class AggregateTransaction extends Transaction {
3838 * @param type
3939 * @param version
4040 * @param deadline
41- * @param fee
41+ * @param maxFee
4242 * @param innerTransactions
4343 * @param cosignatures
4444 * @param signature
@@ -49,7 +49,7 @@ export class AggregateTransaction extends Transaction {
4949 type : number ,
5050 version : number ,
5151 deadline : Deadline ,
52- fee : UInt64 ,
52+ maxFee : UInt64 ,
5353 /**
5454 * The array of innerTransactions included in the aggregate transaction.
5555 */
@@ -61,26 +61,28 @@ export class AggregateTransaction extends Transaction {
6161 signature ?: string ,
6262 signer ?: PublicAccount ,
6363 transactionInfo ?: TransactionInfo ) {
64- super ( type , networkType , version , deadline , fee , signature , signer , transactionInfo ) ;
64+ super ( type , networkType , version , deadline , maxFee , signature , signer , transactionInfo ) ;
6565 }
6666
6767 /**
6868 * Create an aggregate complete transaction object
6969 * @param deadline - The deadline to include the transaction.
70+ * @param {maxFee } maxFee
7071 * @param innerTransactions - The array of inner innerTransactions.
7172 * @param networkType - The network type.
7273 * @param cosignatures
7374 * @returns {AggregateTransaction }
7475 */
7576 public static createComplete ( deadline : Deadline ,
77+ maxFee : UInt64 ,
7678 innerTransactions : InnerTransaction [ ] ,
7779 networkType : NetworkType ,
7880 cosignatures : AggregateTransactionCosignature [ ] ) : AggregateTransaction {
7981 return new AggregateTransaction ( networkType ,
8082 TransactionType . AGGREGATE_COMPLETE ,
8183 TransactionVersion . AGGREGATE_COMPLETE ,
8284 deadline ,
83- new UInt64 ( [ 0 , 0 ] ) ,
85+ maxFee ,
8486 innerTransactions ,
8587 cosignatures ,
8688 ) ;
@@ -89,20 +91,22 @@ export class AggregateTransaction extends Transaction {
8991 /**
9092 * Create an aggregate bonded transaction object
9193 * @param {Deadline } deadline
94+ * @param {maxFee } maxFee
9295 * @param {InnerTransaction[] } innerTransactions
9396 * @param {NetworkType } networkType
9497 * @param {AggregateTransactionCosignature[] } cosignatures
9598 * @return {AggregateTransaction }
9699 */
97100 public static createBonded ( deadline : Deadline ,
101+ maxFee : UInt64 ,
98102 innerTransactions : InnerTransaction [ ] ,
99103 networkType : NetworkType ,
100104 cosignatures : AggregateTransactionCosignature [ ] = [ ] ) : AggregateTransaction {
101105 return new AggregateTransaction ( networkType ,
102106 TransactionType . AGGREGATE_BONDED ,
103107 TransactionVersion . AGGREGATE_BONDED ,
104108 deadline ,
105- new UInt64 ( [ 0 , 0 ] ) ,
109+ maxFee ,
106110 innerTransactions ,
107111 cosignatures ,
108112 ) ;
@@ -116,7 +120,7 @@ export class AggregateTransaction extends Transaction {
116120 return new AggregateTransactionLibrary . Builder ( )
117121 . addDeadline ( this . deadline . toDTO ( ) )
118122 . addType ( this . type )
119- . addFee ( this . fee . toDTO ( ) )
123+ . addFee ( this . maxFee . toDTO ( ) )
120124 . addVersion ( this . versionToDTO ( ) )
121125 . addTransactions ( this . innerTransactions . map ( ( transaction ) => {
122126 return transaction . aggregateTransaction ( ) ;
0 commit comments