1616
1717import { Builder } from '../../infrastructure/builders/AccountPropertiesEntityTypeTransaction' ;
1818import { VerifiableTransaction } from '../../infrastructure/builders/VerifiableTransaction' ;
19- import { PropertyType } from '../account/PropertyType ' ;
19+ import { RestrictionType } from '../account/RestrictionType ' ;
2020import { PublicAccount } from '../account/PublicAccount' ;
2121import { NetworkType } from '../blockchain/NetworkType' ;
2222import { UInt64 } from '../UInt64' ;
@@ -30,24 +30,24 @@ import { TransactionVersion } from './TransactionVersion';
3030export class AccountOperationRestrictionModificationTransaction extends Transaction {
3131
3232 /**
33- * Create a modify account property entity type transaction object
33+ * Create a modify account operation restriction type transaction object
3434 * @param deadline - The deadline to include the transaction.
35- * @param propertyType - The account property type.
35+ * @param restrictionType - The account restriction type.
3636 * @param modifications - The array of modifications.
3737 * @param networkType - The network type.
3838 * @param maxFee - (Optional) Max fee defined by the sender
3939 * @returns {AccountOperationRestrictionModificationTransaction }
4040 */
4141 public static create ( deadline : Deadline ,
42- propertyType : PropertyType ,
42+ restrictionType : RestrictionType ,
4343 modifications : Array < AccountRestrictionModification < TransactionType > > ,
4444 networkType : NetworkType ,
4545 maxFee : UInt64 = new UInt64 ( [ 0 , 0 ] ) ) : AccountOperationRestrictionModificationTransaction {
4646 return new AccountOperationRestrictionModificationTransaction ( networkType ,
4747 TransactionVersion . MODIFY_ACCOUNT_PROPERTY_ENTITY_TYPE ,
4848 deadline ,
4949 maxFee ,
50- propertyType ,
50+ restrictionType ,
5151 modifications ) ;
5252 }
5353
@@ -56,8 +56,7 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
5656 * @param version
5757 * @param deadline
5858 * @param maxFee
59- * @param minApprovalDelta
60- * @param minRemovalDelta
59+ * @param restrictionType
6160 * @param modifications
6261 * @param signature
6362 * @param signer
@@ -67,7 +66,7 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
6766 version : number ,
6867 deadline : Deadline ,
6968 maxFee : UInt64 ,
70- public readonly propertyType : PropertyType ,
69+ public readonly restrictionType : RestrictionType ,
7170 public readonly modifications : Array < AccountRestrictionModification < TransactionType > > ,
7271 signature ?: string ,
7372 signer ?: PublicAccount ,
@@ -105,7 +104,7 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
105104 . addDeadline ( this . deadline . toDTO ( ) )
106105 . addFee ( this . maxFee . toDTO ( ) )
107106 . addVersion ( this . versionToDTO ( ) )
108- . addPropertyType ( this . propertyType )
107+ . addPropertyType ( this . restrictionType )
109108 . addModifications ( this . modifications . map ( ( modification ) => modification . toDTO ( ) ) )
110109 . build ( ) ;
111110 }
0 commit comments