From 20698ba2c241bdbd5ded86a700061527fb79f76a Mon Sep 17 00:00:00 2001 From: Georgi Lazarov Date: Fri, 15 Dec 2023 12:36:01 +0200 Subject: [PATCH] chore: Fix typos from previous pull request (#468) This PR fixes the typos from the previous PR releated to the blocklisting improvment feature Signed-off-by: georgi-l95 --- src/state/AccountCreationState.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/state/AccountCreationState.ts b/src/state/AccountCreationState.ts index 1a01cbf0..fb82737e 100644 --- a/src/state/AccountCreationState.ts +++ b/src/state/AccountCreationState.ts @@ -52,7 +52,7 @@ export class AccountCreationState implements IState{ private nodeStartup: boolean; - private blacklistedAccountsCount: number = 0; + private blocklistedAccountsCount: number = 0; constructor() { this.stateName = AccountCreationState.name; @@ -70,11 +70,11 @@ export class AccountCreationState implements IState{ public async onStart(): Promise { const currentArgv = this.cliService.getCurrentArgv(); const async = currentArgv.async; - this.blacklistedAccountsCount = await this.getBlacklistedAccountsCount(); + this.blocklistedAccountsCount = await this.getBlocklistedAccountsCount(); const mode = async ? `asynchronous` : `synchronous` - const blackListedMessage = this.blacklistedAccountsCount > 0 ? `with ${this.blacklistedAccountsCount} blacklisted accounts` : '' + const blockListedMessage = this.blocklistedAccountsCount > 0 ? `with ${this.blocklistedAccountsCount} blocklisted accounts` : '' this.logger.info( - `Starting Account Creation state in ${mode} mode ${blackListedMessage}`, this.stateName + `Starting Account Creation state in ${mode} mode ${blockListedMessage}`, this.stateName ); const balance = currentArgv.balance; @@ -140,7 +140,7 @@ export class AccountCreationState implements IState{ } private async generateECDSA(async: boolean, balance: number, accountNum: number) { - let ecdsaAccountNumCounter = 1002 + this.blacklistedAccountsCount; + let ecdsaAccountNumCounter = 1002 + this.blocklistedAccountsCount; const accounts = []; let privateKey; let wallet; @@ -186,7 +186,7 @@ export class AccountCreationState implements IState{ } private async generateAliasECDSA(async: boolean, balance: number, accountNum: number) { - let aliasedAccountNumCounter = 1012 + this.blacklistedAccountsCount; + let aliasedAccountNumCounter = 1012 + this.blocklistedAccountsCount; const accounts = []; if (!async) this.logAliasAccountTitle(); @@ -228,7 +228,7 @@ export class AccountCreationState implements IState{ } private async generateED25519(async: boolean, balance: number, accountNum: number) { - let edAccountNumCounter = 1022 + this.blacklistedAccountsCount; + let edAccountNumCounter = 1022 + this.blocklistedAccountsCount; const accounts = []; let privateKey; let wallet; @@ -342,7 +342,7 @@ export class AccountCreationState implements IState{ .find((prop) => prop.key === 'accounts.blocklist.path')?.value as string } - private async getBlacklistedAccountsCount (): Promise { + private async getBlocklistedAccountsCount (): Promise { return new Promise((resolve) => { let count = 0; const filepath = path.join(