@ -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() {
) }
< div className = "block" >
< div className = "buttons has-addons" >
< a href = " # " target = { "_blank" } alt = "twitter share" className = "button" > < img src = { Twitter } width = { "32px" } / > < / a >
< a href = "https://twitter.com/intent/tweet?text=Just minted a lottery ticket to win 1 ETH at https://lzahq.tech/afouagmi by @lza_menace! LFG!" target = { "_blank" } alt = "twitter share" className = "button" > < img src = { Twitter } width = { "32px" } / > < / a >
< a href = "#" target = { "_blank" } alt = "looksrare link" className = "button" > < img src = { Looksrare } width = { "32px" } / > < / a >
< a href = "#" target = { "_blank" } alt = "x2y2 link" className = "button" > < img src = { X2Y2 } width = { "32px" } / > < / a >
< a href = "#" target = { "_blank" } alt = "opensea link" className = "button" > < img src = { Opensea } width = { "32px" } / > < / a >