Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 55cb977

Browse files
author
Victor Wiebe
committed
fix: securityTokenWrapper use Perm instead of string
1 parent a7a41ce commit 55cb977

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/contract_wrappers/tokens/__tests__/security_token_wrapper.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
PERCENTAGE_DECIMALS,
2929
FULL_DECIMALS,
3030
Partition,
31+
Perm,
3132
} from '../../../types';
3233
import SecurityTokenWrapper from '../security_token_wrapper';
3334
import ContractFactory from '../../../factories/contractFactory';
@@ -41,7 +42,8 @@ import {
4142
weiToValue,
4243
stringArrayToBytes32Array,
4344
bytes32ArrayToStringArray,
44-
bigNumberToDate, parsePartitionBytes32Value,
45+
bigNumberToDate,
46+
parsePartitionBytes32Value,
4547
} from '../../../utils/convert';
4648
import { MockedCallMethod, MockedSendMethod, getMockedPolyResponse } from '../../../test_utils/mocked_methods';
4749

@@ -655,7 +657,7 @@ describe('SecurityTokenWrapper', () => {
655657
const mockedParams = {
656658
delegateAddress: '0x1111111111111111111111111111111111111111',
657659
moduleAddress: '0x1111111111111111111111111111111111111111',
658-
permission: 'string',
660+
permission: Perm.Admin,
659661
};
660662
// Mocked method
661663
const mockedMethod = mock(MockedCallMethod);

src/contract_wrappers/tokens/security_token_wrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import {
6868
ModuleType,
6969
Partition,
7070
PERCENTAGE_DECIMALS,
71+
Perm,
7172
Subscribe,
7273
SubscribeAsyncParams,
7374
TxParams,
@@ -631,7 +632,7 @@ interface IssueMultiParams extends TxParams {
631632
interface CheckPermissionParams {
632633
delegateAddress: string;
633634
moduleAddress: string;
634-
permission: string;
635+
permission: Perm;
635636
}
636637

637638
interface RedeemParams extends TxParams {

0 commit comments

Comments
 (0)