Skip to content

Commit

Permalink
fix: better var names
Browse files Browse the repository at this point in the history
  • Loading branch information
shuffledex committed Dec 20, 2019
1 parent 7531f4e commit 3fbd074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/procedures/IssueTokens.ts
Expand Up @@ -70,15 +70,15 @@ export class IssueTokens extends Procedure<IssueTokensProcedureArgs, Shareholder
} else {
const invalidAddresses: string[] = [];
const invalidCodes: RawTransferStatusCode[] = [];
await P.each(investors, async (address, index) => {
await P.each(investors, async (to, i) => {
const { statusCode } = await securityToken.canTransferFrom({
from: ZERO_ADDRESS,
to: address,
value: values[index],
to,
value: values[i],
});

if (statusCode !== RawTransferStatusCode.TransferSuccess) {
invalidAddresses.push(address);
invalidAddresses.push(to);
invalidCodes.push(statusCode);
}
});
Expand Down

0 comments on commit 3fbd074

Please sign in to comment.