Skip to content

Commit

Permalink
fix(status-page): eth deposit display (#13763)
Browse files Browse the repository at this point in the history
Co-authored-by: d1onys1us <13951458+d1onys1us@users.noreply.github.com>
  • Loading branch information
cyberhorsey and d1onys1us committed May 15, 2023
1 parent 945dabc commit fedab00
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/status-page/src/utils/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
2 changes: 1 addition & 1 deletion packages/status-page/src/utils/getEthDeposits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const getEthDeposits = async (
contractAddress: string
): Promise<number> => {
const stateVariables = await getStateVariables(provider, contractAddress);
return stateVariables.numEthDeposits;
return stateVariables.numEthDeposits.toNumber();
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const getNextEthDepositToProcess = async (
): Promise<number> => {
const contract: Contract = new Contract(contractAddress, TaikoL1, provider);
const stateVariables = await contract.getStateVariables();
return stateVariables.nextEthDepositToProcess;
return stateVariables.nextEthDepositToProcess.toNumber();
};

0 comments on commit fedab00

Please sign in to comment.