diff --git a/src/services/evm/erc20.service.ts b/src/services/evm/erc20.service.ts index 021fa93b1..2ca5dcb7b 100644 --- a/src/services/evm/erc20.service.ts +++ b/src/services/evm/erc20.service.ts @@ -351,19 +351,18 @@ export default class Erc20Service extends BullableService { public async _start(): Promise { this.viemClient = getViemClient(); - if (config.evmOnly === false) { - const lcdClient = await getLcdClient(); - const erc20Account: QueryModuleAccountByNameResponseSDKType = - await lcdClient.provider.cosmos.auth.v1beta1.moduleAccountByName({ - name: 'erc20', - }); - - Erc20Handler.erc20ModuleAccount = - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - erc20Account.account.base_account.address; - } if (NODE_ENV !== 'test') { + if (config.evmOnly === false) { + const lcdClient = await getLcdClient(); + const erc20Account: QueryModuleAccountByNameResponseSDKType = + await lcdClient.provider.cosmos.auth.v1beta1.moduleAccountByName({ + name: 'erc20', + }); + Erc20Handler.erc20ModuleAccount = + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + erc20Account.account.base_account.address; + } await this.createJob( BULL_JOB_NAME.HANDLE_ERC20_CONTRACT, BULL_JOB_NAME.HANDLE_ERC20_CONTRACT,