@@ -44,15 +44,15 @@ export class MosaicSupplyChangeTransaction extends Transaction {
4444 * Create a mosaic supply change transaction object
4545 * @param deadline - The deadline to include the transaction.
4646 * @param mosaicId - The mosaic id.
47- * @param direction - The supply type .
47+ * @param action - The supply change action (increase | decrease) .
4848 * @param delta - The supply change in units for the mosaic.
4949 * @param networkType - The network type.
5050 * @param maxFee - (Optional) Max fee defined by the sender
5151 * @returns {MosaicSupplyChangeTransaction }
5252 */
5353 public static create ( deadline : Deadline ,
5454 mosaicId : MosaicId ,
55- direction : MosaicSupplyChangeAction ,
55+ action : MosaicSupplyChangeAction ,
5656 delta : UInt64 ,
5757 networkType : NetworkType ,
5858 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ) : MosaicSupplyChangeTransaction {
@@ -61,7 +61,7 @@ export class MosaicSupplyChangeTransaction extends Transaction {
6161 deadline ,
6262 maxFee ,
6363 mosaicId ,
64- direction ,
64+ action ,
6565 delta ,
6666 ) ;
6767 }
@@ -72,7 +72,7 @@ export class MosaicSupplyChangeTransaction extends Transaction {
7272 * @param deadline
7373 * @param maxFee
7474 * @param mosaicId
75- * @param direction
75+ * @param action
7676 * @param delta
7777 * @param signature
7878 * @param signer
@@ -89,7 +89,7 @@ export class MosaicSupplyChangeTransaction extends Transaction {
8989 /**
9090 * The supply type.
9191 */
92- public readonly direction : MosaicSupplyChangeAction ,
92+ public readonly action : MosaicSupplyChangeAction ,
9393 /**
9494 * The supply change in units for the mosaic.
9595 */
@@ -136,10 +136,10 @@ export class MosaicSupplyChangeTransaction extends Transaction {
136136
137137 // set static byte size fields
138138 const byteMosaicId = 8 ;
139- const byteDirection = 1 ;
139+ const byteAction = 1 ;
140140 const byteDelta = 8 ;
141141
142- return byteSize + byteMosaicId + byteDirection + byteDelta ;
142+ return byteSize + byteMosaicId + byteAction + byteDelta ;
143143 }
144144
145145 /**
@@ -158,7 +158,7 @@ export class MosaicSupplyChangeTransaction extends Transaction {
158158 new AmountDto ( this . maxFee . toDTO ( ) ) ,
159159 new TimestampDto ( this . deadline . toDTO ( ) ) ,
160160 new UnresolvedMosaicIdDto ( this . mosaicId . id . toDTO ( ) ) ,
161- this . direction . valueOf ( ) ,
161+ this . action . valueOf ( ) ,
162162 new AmountDto ( this . delta . toDTO ( ) ) ,
163163 ) ;
164164 return transactionBuilder . serialize ( ) ;
@@ -174,7 +174,7 @@ export class MosaicSupplyChangeTransaction extends Transaction {
174174 this . versionToDTO ( ) ,
175175 TransactionType . MOSAIC_SUPPLY_CHANGE . valueOf ( ) ,
176176 new UnresolvedMosaicIdDto ( this . mosaicId . id . toDTO ( ) ) ,
177- this . direction . valueOf ( ) ,
177+ this . action . valueOf ( ) ,
178178 new AmountDto ( this . delta . toDTO ( ) ) ,
179179 ) ;
180180 return transactionBuilder . serialize ( ) ;
0 commit comments