use prod url

pull/43/head
yuriy 3 years ago
parent d262cb563e
commit 40f1d37000
No known key found for this signature in database
GPG Key ID: 6D8D9AD3D80B0F2C
  1. 4
      src/api/explorerV1.ts

@ -29,7 +29,7 @@ export interface IVerifyContractDataSendData {
export const verifyContractCode = async (data: IVerifyContractDataSendData) => { export const verifyContractCode = async (data: IVerifyContractDataSendData) => {
const response = await fetch( const response = await fetch(
`${process.env.VERIFICATION_API_URL}codeVerification`, `${process.env.REACT_APP_EXPLORER_V1_API_URL}codeVerification`,
{ {
method: "POST", method: "POST",
mode: "cors", mode: "cors",
@ -55,7 +55,7 @@ export const verifyContractCode = async (data: IVerifyContractDataSendData) => {
export const loadSourceCode = async (address: string): Promise<ISourceCode> => { export const loadSourceCode = async (address: string): Promise<ISourceCode> => {
const response = await fetch( const response = await fetch(
`${process.env.VERIFICATION_API_URL}fetchContractCode?contractAddress=${address}`, `${process.env.REACT_APP_EXPLORER_V1_API_URL}fetchContractCode?contractAddress=${address}`,
{ {
mode: "cors", mode: "cors",
cache: "no-cache", cache: "no-cache",

Loading…
Cancel
Save