@@ -38,7 +38,6 @@ import { UInt64 } from '../UInt64';
3838import { AggregateTransactionCosignature } from './AggregateTransactionCosignature' ;
3939import { CosignatureSignedTransaction } from './CosignatureSignedTransaction' ;
4040import { Deadline } from './Deadline' ;
41- import { InnerTransaction } from './InnerTransaction' ;
4241import { SignedTransaction } from './SignedTransaction' ;
4342import { Transaction } from './Transaction' ;
4443import { TransactionInfo } from './TransactionInfo' ;
@@ -70,7 +69,7 @@ export class AggregateTransaction extends Transaction {
7069 /**
7170 * The array of innerTransactions included in the aggregate transaction.
7271 */
73- public readonly innerTransactions : InnerTransaction [ ] ,
72+ public readonly innerTransactions : Transaction [ ] ,
7473 /**
7574 * The array of transaction cosigners signatures.
7675 */
@@ -91,7 +90,7 @@ export class AggregateTransaction extends Transaction {
9190 * @returns {AggregateTransaction }
9291 */
9392 public static createComplete ( deadline : Deadline ,
94- innerTransactions : InnerTransaction [ ] ,
93+ innerTransactions : Transaction [ ] ,
9594 networkType : NetworkType ,
9695 cosignatures : AggregateTransactionCosignature [ ] ,
9796 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ) : AggregateTransaction {
@@ -108,14 +107,14 @@ export class AggregateTransaction extends Transaction {
108107 /**
109108 * Create an aggregate bonded transaction object
110109 * @param {Deadline } deadline
111- * @param {InnerTransaction [] } innerTransactions
110+ * @param {Transaction [] } innerTransactions
112111 * @param {NetworkType } networkType
113112 * @param {AggregateTransactionCosignature[] } cosignatures
114113 * @param {UInt64 } maxFee - (Optional) Max fee defined by the sender
115114 * @return {AggregateTransaction }
116115 */
117116 public static createBonded ( deadline : Deadline ,
118- innerTransactions : InnerTransaction [ ] ,
117+ innerTransactions : Transaction [ ] ,
119118 networkType : NetworkType ,
120119 cosignatures : AggregateTransactionCosignature [ ] = [ ] ,
121120 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ) : AggregateTransaction {
@@ -151,7 +150,7 @@ export class AggregateTransaction extends Transaction {
151150 } ) ;
152151
153152 const innerTransactions = builder . getTransactions ( ) . map ( ( transaction ) => {
154- return CreateTransactionFromEmbeddedTransactionBuilder ( transaction as EmbeddedTransactionBuilder ) as InnerTransaction ;
153+ return CreateTransactionFromEmbeddedTransactionBuilder ( transaction as EmbeddedTransactionBuilder ) ;
155154 } ) ;
156155
157156 return builder . getType ( ) . valueOf ( ) === TransactionType . AGGREGATE_COMPLETE ?
@@ -173,11 +172,11 @@ export class AggregateTransaction extends Transaction {
173172
174173 /**
175174 * @description add inner transactions to current list
176- * @param {InnerTransaction [] } transactions the transactions to be added
175+ * @param {Transaction [] } transactions the transactions to be added
177176 * @returns {AggregateTransaction }
178177 * @memberof AggregateTransaction
179178 */
180- public addTransactions ( transactions : InnerTransaction [ ] ) : AggregateTransaction {
179+ public addTransactions ( transactions : Transaction [ ] ) : AggregateTransaction {
181180 const innerTransactions = this . innerTransactions . concat ( transactions ) ;
182181 return DtoMapping . assign ( this , { innerTransactions} ) ;
183182 }
@@ -298,7 +297,7 @@ export class AggregateTransaction extends Transaction {
298297 protected generateBytes ( ) : Uint8Array {
299298 const signerBuffer = new Uint8Array ( 32 ) ;
300299 const signatureBuffer = new Uint8Array ( 64 ) ;
301- const transactions = this . innerTransactions . map ( ( transaction ) => ( transaction as Transaction ) . toEmbeddedTransaction ( ) ) ;
300+ const transactions = this . innerTransactions . map ( ( transaction ) => transaction . toEmbeddedTransaction ( ) ) ;
302301 const cosignatures = this . cosignatures . map ( ( cosignature ) => {
303302 const signerBytes = Convert . hexToUint8 ( cosignature . signer . publicKey ) ;
304303 const signatureBytes = Convert . hexToUint8 ( cosignature . signature ) ;
0 commit comments