From 60f426bb1b4f8ee238c8c98f10757c2372162fca Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Thu, 21 Nov 2024 14:32:45 +0000 Subject: [PATCH] nit --- typescript/sdk/src/token/checker.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/typescript/sdk/src/token/checker.ts b/typescript/sdk/src/token/checker.ts index 2b20771dc..595e73f21 100644 --- a/typescript/sdk/src/token/checker.ts +++ b/typescript/sdk/src/token/checker.ts @@ -69,7 +69,7 @@ export class HypERC20Checker extends ProxiedRouterChecker< const hypToken = this.app.router(this.app.getContracts(chain)); // Check all actual decimals are consistent - const actualChainDecimals = await this.getAllActualDecimals(); + const actualChainDecimals = await this.getEvmActualDecimals(); this.checkDecimalConsistency( chain, hypToken, @@ -128,14 +128,10 @@ export class HypERC20Checker extends ProxiedRouterChecker< } } - getChainDecimals(): Record { - return objMap(this.configMap, (_chain, config) => config.decimals); - } - private cachedAllActualDecimals: Record | undefined = undefined; - async getAllActualDecimals(): Promise> { + async getEvmActualDecimals(): Promise> { if (this.cachedAllActualDecimals) { return this.cachedAllActualDecimals; }