From a7eda387959d12a7bb8f0d31df158fad432bd09a Mon Sep 17 00:00:00 2001 From: tiendn Date: Mon, 3 Apr 2023 11:11:03 +0700 Subject: [PATCH] fix: use ApiList constant insteadof hardcode --- components/VerifyContract/ContractFlattenedVerify.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/VerifyContract/ContractFlattenedVerify.tsx b/components/VerifyContract/ContractFlattenedVerify.tsx index 21238718..bf591f67 100644 --- a/components/VerifyContract/ContractFlattenedVerify.tsx +++ b/components/VerifyContract/ContractFlattenedVerify.tsx @@ -2,6 +2,7 @@ import { NormalButton, withToast } from '@astraprotocol/astra-ui' import { InputProps } from '@astraprotocol/astra-ui/lib/es/components/Form/Input' import { InputProps as InputNumberProps } from '@astraprotocol/astra-ui/lib/es/components/Form/Input/NumberInput' import * as Sentry from '@sentry/react' +import API_LIST from 'api/api_list' import axios from 'axios' import clsx from 'clsx' import FormItem, { FormRadioButtonData, FormSelectData, InputData } from 'components/FormItem' @@ -84,7 +85,7 @@ const ContractFlattenedVerify = ({ address, onClose, onSuccess }: Props) => { const data = qs.stringify(params) var config = { method: 'post', - url: `${process.env.NEXT_PUBLIC_COSMOS_API}/verify_smart_contract/contract_verifications`, + url: `${process.env.NEXT_PUBLIC_COSMOS_API}${API_LIST.VERIFY_CONTRACT}`, headers: { 'Content-Type': 'application/x-www-form-urlencoded' },