Skip to content

Commit 3d06a57

Browse files
committed
Renamed accountEntityType to accountOperation
1 parent 508e24f commit 3d06a57

File tree

2 files changed

+9
-121
lines changed

2 files changed

+9
-121
lines changed

src/model/transaction/AccountEntityTypeRestrictionModificationTransaction.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/model/transaction/AccountOperationRestrictionModificationTransaction.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import { Builder } from '../../infrastructure/builders/AccountPropertiesEntityTypeTransaction';
1818
import {VerifiableTransaction} from '../../infrastructure/builders/VerifiableTransaction';
19-
import { RestrictionType } from '../account/RestrictionType';
19+
import { PropertyType } from '../account/PropertyType';
2020
import { PublicAccount } from '../account/PublicAccount';
2121
import { NetworkType } from '../blockchain/NetworkType';
2222
import { UInt64 } from '../UInt64';
@@ -30,24 +30,24 @@ import { TransactionVersion } from './TransactionVersion';
3030
export 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

Comments
 (0)