Skip to content

Commit

Permalink
fix: use ApiList constant insteadof hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Apr 3, 2023
1 parent 900e986 commit a7eda38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/VerifyContract/ContractFlattenedVerify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
},
Expand Down

0 comments on commit a7eda38

Please sign in to comment.