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

Commit ecb7947

Browse files
committed
fix: 🐛 typos and naming fixes for GTM wrapper
1 parent 9902efa commit ecb7947

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/contract_wrappers/modules/transfer_manager/general_transfer_manager_wrapper.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export default class GeneralTransferManagerWrapper extends ModuleWrapper {
331331
return !!bitInFlagPosition;
332332
};
333333

334-
private flagsCheking = (investor: string, flags: BigNumber) => {
334+
private unpackFlags = (investor: string, flags: BigNumber) => {
335335
let isAccredited = false;
336336
let canNotBuyFromSTO = false;
337337
let isVolRestricted = false;
@@ -375,19 +375,18 @@ export default class GeneralTransferManagerWrapper extends ModuleWrapper {
375375

376376
public getAllInvestorFlags = async () => {
377377
const result = await (await this.contract).getAllInvestorFlags.callAsync();
378-
const investors = result[0];
379-
const flags = result[1];
380-
const investorFalgs = [];
378+
const [investors, flags] = result;
379+
const investorFlags = [];
381380
for (let i = 0; i < investors[0].length; i += 1) {
382-
investorFalgs.push(this.flagsCheking(investors[i], flags[i]));
381+
investorFlags.push(this.unpackFlags(investors[i], flags[i]));
383382
}
384-
return investorFalgs;
383+
return investorFlags;
385384
};
386385

387386
public getInvestorFlags = async (params: GetInvestorFlags) => {
388387
const { investor } = params;
389388
const flags = await (await this.contract).getInvestorFlags.callAsync(investor);
390-
return this.flagsCheking(investor, flags);
389+
return this.unpackFlags(investor, flags);
391390
};
392391

393392
public getAllKYCData = async () => {

0 commit comments

Comments
 (0)