Skip to content

Commit 9fb1113

Browse files
authored
Merge pull request #302 from NEMStudios/issues_from_feedback
JAV-65, JAV-66 Small issues fixed
2 parents 2b72737 + da4439e commit 9fb1113

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
}

src/model/transaction/AddressAliasTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class AddressAliasTransaction extends Transaction {
9393
*/
9494
public readonly namespaceId: NamespaceId,
9595
/**
96-
* The mosaic id.
96+
* The address.
9797
*/
9898
public readonly address: Address,
9999
signature?: string,

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)