From 1e08f78316c3fd7bd3063e110798fe0c60c0b578 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Wed, 28 Jul 2021 13:07:53 +0300 Subject: [PATCH] fix: validate schema --- src/constants/variables.ts | 6 +++--- src/modules/api/api.service.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/constants/variables.ts b/src/constants/variables.ts index e004078..7dc4a35 100644 --- a/src/constants/variables.ts +++ b/src/constants/variables.ts @@ -4,15 +4,15 @@ import { ChainId } from '@/types'; const NETWORKS_INFO: { [chainId in ChainId] } = { [ChainId.MAINNET]: { gasLimit: BigNumber.from(600000), - minimumBalance: 0.5, + minimumBalance: '0.5', }, [ChainId.GOERLI]: { gasLimit: BigNumber.from(600000), - minimumBalance: 0.5, + minimumBalance: '0.5', }, [ChainId.OPTIMISM]: { gasLimit: '', - minimumBalance: 0.5, + minimumBalance: '0.5', }, }; diff --git a/src/modules/api/api.service.ts b/src/modules/api/api.service.ts index de87ec6..7881251 100644 --- a/src/modules/api/api.service.ts +++ b/src/modules/api/api.service.ts @@ -20,10 +20,10 @@ class ApiService { return { health, - chainId, version, - serviceFee, rewardAddress, + chainId: Number(chainId), + serviceFee: Number(serviceFee), }; }