Skip to content

Commit

Permalink
fix: update endpoint verify contract
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Mar 31, 2023
1 parent 4fa6b78 commit e099d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/api_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const API_LIST = {
TOKEN_TRANSER_BY_TOKEN_ID: '/api/v1/contract/token-transfers-by-tokenid/', // contractaddress=0x8CB41dA24793D4515E6b96D1adA50b721878C0Ca&tokenid=10

CONTRACT_CODE: '/api/v1/contract/source-code/',
VERIFY_CONTRACT: `evm_/verify_smart_contract/contract_verifications`,
VERIFY_CONTRACT: `/verify_smart_contract/contract_verifications`,
CHECK_VERIFY_STATUS: 'evm_/api/v1?module=contract&action=checkverifystatus',
GET_EVM_VERSION: '/api/v1/evm-versions',
GET_SOLIDITY_COMPILER: '/api/v1/compiler-versions/',
Expand Down
4 changes: 2 additions & 2 deletions components/VerifyContract/ContractFlattenedVerify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ContractFlattenedVerify = ({ address, onClose, onSuccess }: Props) => {
const data = qs.stringify(params)
var config = {
method: 'post',
url: `${process.env.NEXT_PUBLIC_EVM_API}/verify_smart_contract/contract_verifications`,
url: `${process.env.NEXT_PUBLIC_COSMOS_API}/verify_smart_contract/contract_verifications`,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
Expand All @@ -107,7 +107,7 @@ const ContractFlattenedVerify = ({ address, onClose, onSuccess }: Props) => {
useEffect(() => {
if (isValidated) onSuccess()
}, [isValidated])

console.log(versions)
return (
<div className={clsx(styles.modalVerify, 'radius-lg')}>
<Header onClose={onClose} />
Expand Down

0 comments on commit e099d7a

Please sign in to comment.