1616
1717import { Builder } from '../../infrastructure/builders/AccountPropertiesEntityTypeTransaction' ;
1818import { VerifiableTransaction } from '../../infrastructure/builders/VerifiableTransaction' ;
19- import { RestrictionType } from '../account/RestrictionType ' ;
19+ import { PropertyType } from '../account/PropertyType ' ;
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 operation restriction type transaction object
33+ * Create a modify account property entity type transaction object
3434 * @param deadline - The deadline to include the transaction.
35- * @param restrictionType - The account restriction type.
35+ * @param propertyType - The account property 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- restrictionType : RestrictionType ,
42+ propertyType : PropertyType ,
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- restrictionType ,
50+ propertyType ,
5151 modifications ) ;
5252 }
5353
@@ -56,7 +56,8 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
5656 * @param version
5757 * @param deadline
5858 * @param maxFee
59- * @param restrictionType
59+ * @param minApprovalDelta
60+ * @param minRemovalDelta
6061 * @param modifications
6162 * @param signature
6263 * @param signer
@@ -66,7 +67,7 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
6667 version : number ,
6768 deadline : Deadline ,
6869 maxFee : UInt64 ,
69- public readonly restrictionType : RestrictionType ,
70+ public readonly propertyType : PropertyType ,
7071 public readonly modifications : Array < AccountRestrictionModification < TransactionType > > ,
7172 signature ?: string ,
7273 signer ?: PublicAccount ,
@@ -104,7 +105,7 @@ export class AccountOperationRestrictionModificationTransaction extends Transact
104105 . addDeadline ( this . deadline . toDTO ( ) )
105106 . addFee ( this . maxFee . toDTO ( ) )
106107 . addVersion ( this . versionToDTO ( ) )
107- . addPropertyType ( this . restrictionType )
108+ . addPropertyType ( this . propertyType )
108109 . addModifications ( this . modifications . map ( ( modification ) => modification . toDTO ( ) ) )
109110 . build ( ) ;
110111 }
0 commit comments