Skip to content

Commit

Permalink
fix: assign proper module name for roles
Browse files Browse the repository at this point in the history
  • Loading branch information
monitz87 committed Oct 9, 2019
1 parent 37c2e6d commit eed78e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PolymathBase.ts
Expand Up @@ -671,7 +671,7 @@ export class PolymathBase extends PolymathAPI {
SecurityTokenRole.Erc20DividendsOperator,
].includes(role)
) {
moduleName = ModuleName.GeneralTransferManager;
moduleName = ModuleName.ERC20DividendCheckpoint;
permission =
role === SecurityTokenRole.Erc20DividendsAdministrator ? Perm.Admin : Perm.Operator;
} else if (
Expand All @@ -680,7 +680,7 @@ export class PolymathBase extends PolymathAPI {
SecurityTokenRole.EtherDividendsOperator,
].includes(role)
) {
moduleName = ModuleName.ERC20DividendCheckpoint;
moduleName = ModuleName.EtherDividendCheckpoint;
permission =
role === SecurityTokenRole.EtherDividendsAdministrator ? Perm.Admin : Perm.Operator;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Expand Up @@ -401,6 +401,7 @@ export interface ProcedureArguments {
[ProcedureType.ControllerTransfer]: ControllerTransferProcedureArgs;
[ProcedureType.SetController]: SetControllerProcedureArgs;
[ProcedureType.AssignSecurityTokenRole]: AssignSecurityTokenRoleProcedureArgs;
[ProcedureType.AssignStoRole]: AssignStoRoleProcedureArgs;
[ProcedureType.ModifyShareholderData]: ModifyShareholderDataProcedureArgs;
[ProcedureType.RevokeKyc]: RevokeKycProcedureArgs;
[ProcedureType.UnnamedProcedure]: {};
Expand Down

0 comments on commit eed78e8

Please sign in to comment.