From 41dad0b1413ed2875e93c2e7398422b9f00311b9 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 27 Jan 2023 10:31:00 -0800 Subject: [PATCH] use mainnet --- src/App.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/App.js b/src/App.js index 250afdc..362061e 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,7 @@ import { configureChains, useContractWrite, usePrepareContractWrite, useWaitForTransaction, useContractRead } from 'wagmi'; -import { localhost, goerli } from 'wagmi/chains'; +import { mainnet } from 'wagmi/chains'; import { publicProvider } from 'wagmi/providers/public'; import { infuraProvider } from 'wagmi/providers/infura'; import { InjectedConnector } from 'wagmi/connectors/injected'; @@ -22,10 +22,13 @@ import 'bulma/css/bulma.min.css'; import 'noty/lib/noty.css'; import 'noty/lib/themes/relax.css'; -const contractAddress = "0x4f2888c3f43f87190d7d3f4df99329c74b3039c9"; +// 0x5FbDB2315678afecb367f032d93F642f64180aa3 - local +// 0xd8977312564d808e8e57778acd42c16f70d1cd41 - goerli +// 0x25982b72416BBF379e6A28C694baD6559E757c11 - mainnet +const contractAddress = "0x25982b72416BBF379e6A28C694baD6559E757c11"; const { chains, provider } = configureChains( - [localhost, goerli], + [mainnet], [infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }), publicProvider()] ); @@ -257,10 +260,8 @@ function Contract() { )}
- -
- +