Skip to content

Commit 9923fe4

Browse files
committed
JAV-66 #299 Typo in AccountRestrictionTransaction
1 parent 61b3837 commit 9923fe4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/model/transaction/AccountRestrictionTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class AccountRestrictionTransaction {
102102
): AccountOperationRestrictionTransaction {
103103
if (![AccountRestrictionType.AllowIncomingTransactionType,
104104
AccountRestrictionType.AllowOutgoingTransactionType,
105-
AccountRestrictionType.BlockOutgoingTransactionType,
105+
AccountRestrictionType.BlockIncomingTransactionType,
106106
AccountRestrictionType.BlockOutgoingTransactionType].includes(restrictionType)) {
107107
throw new Error ('Restriction type is not allowed.');
108108
}

test/model/transaction/AccountRestrictionTransaction.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
import {expect} from 'chai';
1818
import {Account} from '../../../src/model/account/Account';
19-
import { AccountRestrictionModificationAction } from '../../../src/model/restriction/AccountRestrictionModificationAction';
20-
import { AccountRestrictionType } from '../../../src/model/restriction/AccountRestrictionType';
2119
import {Address} from '../../../src/model/account/Address';
2220
import {NetworkType} from '../../../src/model/blockchain/NetworkType';
2321
import {MosaicId} from '../../../src/model/mosaic/MosaicId';
22+
import { AccountRestrictionModificationAction } from '../../../src/model/restriction/AccountRestrictionModificationAction';
23+
import { AccountRestrictionType } from '../../../src/model/restriction/AccountRestrictionType';
2424
import { AccountRestrictionModification } from '../../../src/model/transaction/AccountRestrictionModification';
2525
import {AccountRestrictionTransaction} from '../../../src/model/transaction/AccountRestrictionTransaction';
2626
import {Deadline} from '../../../src/model/transaction/Deadline';

0 commit comments

Comments
 (0)