From fedab00148c332a5538265100b103dab9fff98e5 Mon Sep 17 00:00:00 2001 From: jeff <113397187+cyberhorsey@users.noreply.github.com> Date: Mon, 15 May 2023 14:30:23 -0700 Subject: [PATCH] fix(status-page): eth deposit display (#13763) Co-authored-by: d1onys1us <13951458+d1onys1us@users.noreply.github.com> --- packages/status-page/src/utils/getConfig.ts | 1 - packages/status-page/src/utils/getEthDeposits.ts | 2 +- packages/status-page/src/utils/getNextEthDepositToProcess.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/status-page/src/utils/getConfig.ts b/packages/status-page/src/utils/getConfig.ts index b5ead51a136..4c39f542143 100644 --- a/packages/status-page/src/utils/getConfig.ts +++ b/packages/status-page/src/utils/getConfig.ts @@ -7,6 +7,5 @@ export const getConfig = async ( ) => { const contract: Contract = new Contract(contractAddress, TaikoL1, provider); const config = await contract.getConfig(); - console.log(config); return config; }; diff --git a/packages/status-page/src/utils/getEthDeposits.ts b/packages/status-page/src/utils/getEthDeposits.ts index c2b2307ead8..6e132c2e6d3 100644 --- a/packages/status-page/src/utils/getEthDeposits.ts +++ b/packages/status-page/src/utils/getEthDeposits.ts @@ -6,5 +6,5 @@ export const getEthDeposits = async ( contractAddress: string ): Promise => { const stateVariables = await getStateVariables(provider, contractAddress); - return stateVariables.numEthDeposits; + return stateVariables.numEthDeposits.toNumber(); }; diff --git a/packages/status-page/src/utils/getNextEthDepositToProcess.ts b/packages/status-page/src/utils/getNextEthDepositToProcess.ts index fd8ace3a771..b74b3b3ee66 100644 --- a/packages/status-page/src/utils/getNextEthDepositToProcess.ts +++ b/packages/status-page/src/utils/getNextEthDepositToProcess.ts @@ -7,5 +7,5 @@ export const getNextEthDepositToProcess = async ( ): Promise => { const contract: Contract = new Contract(contractAddress, TaikoL1, provider); const stateVariables = await contract.getStateVariables(); - return stateVariables.nextEthDepositToProcess; + return stateVariables.nextEthDepositToProcess.toNumber(); };