diff --git a/packages/nextjs/.env.example b/packages/nextjs/.env.example index 1d5ae40f..a81d3b0c 100644 --- a/packages/nextjs/.env.example +++ b/packages/nextjs/.env.example @@ -16,6 +16,7 @@ NEXT_PUBLIC_POLYGON_ETHERSCAN_API_KEY= NEXT_PUBLIC_ARBITRUM_ETHERSCAN_API_KEY= NEXT_PUBLIC_SCROLL_ETHERSCAN_API_KEY= NEXT_PUBLIC_BASE_ETHERSCAN_API_KEY= +NEXT_PUBLIC_HEIMDALL_URL= NEXT_PUBLIC_ALCHEMY_API_KEY= NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index f1aa6845..6bb9186a 100644 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -133,7 +133,7 @@ const Home: NextPage = () => { const fetchAbiFromHeimdall = async (contractAddress: string) => { setIsFetchingAbi(true); try { - const response = await fetch(`https://heimdall-api.fly.dev/${network}/${contractAddress}`); + const response = await fetch(`https://${process.env.NEXT_PUBLIC_HEIMDALL_URL}/${network}/${contractAddress}`); const abi = await response.json(); if (abi.length === 0) { notification.error("Failed to fetch ABI from Heimdall. Please try again or enter ABI manually.");