File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 1616
1717import { expect } from 'chai' ;
1818import { Account } from '../../../src/model/account/Account' ;
19- import { AccountRestrictionModificationAction } from '../../../src/model/restriction/AccountRestrictionModificationAction' ;
20- import { AccountRestrictionType } from '../../../src/model/restriction/AccountRestrictionType' ;
2119import { Address } from '../../../src/model/account/Address' ;
2220import { NetworkType } from '../../../src/model/blockchain/NetworkType' ;
2321import { MosaicId } from '../../../src/model/mosaic/MosaicId' ;
22+ import { AccountRestrictionModificationAction } from '../../../src/model/restriction/AccountRestrictionModificationAction' ;
23+ import { AccountRestrictionType } from '../../../src/model/restriction/AccountRestrictionType' ;
2424import { AccountRestrictionModification } from '../../../src/model/transaction/AccountRestrictionModification' ;
2525import { AccountRestrictionTransaction } from '../../../src/model/transaction/AccountRestrictionTransaction' ;
2626import { Deadline } from '../../../src/model/transaction/Deadline' ;
You can’t perform that action at this time.
0 commit comments