Open U220053 opened 1 year ago
Hi Suggest check Issue #55 which is settled up on Sepolia too and is working.
Please let me know if problem persists
hi @bghad1 Issue #55 contains the whole project link ...but specifically how do I resolve the error which I mentioned.
Also @bghad1 in .env.example what is the PROJECT ID ?where do I get it from ...actually i am complete beginner so kindly help
Hey @U220053 .env is a file, for security reasons. But in case of testing, you don't need it. You can easily set your rpc url(ex: infura rpc) and private key, in hardhat.config.js
Warning: validateDOMNesting(...):
@bghad1
I'm sure the issue was solved in my latest push.
By the way, to solve the error of
Place this function before returning html elements:
const handleUserAccount = () => { return <ConnectWallet /> }
And after that, replace this code with prior code:
<div className="sm:flex hidden flex-row justify-end gap-4">
<CustomButton
btnType="button"
title={!address ? 'Connect' : handleUserAccount() }
styles={!address ? 'bg-[#1dc071]' : '' /*'bg-[#8c6dfd]'*/ }
handleClick={() => {
if(address) navigate('create-campaign')
else connect()
}}
/>
Please let me know if it solved.
Also about the another problem you faced(call revert exception), did you deploy your contract?
@BahadorGh yes I deployed without project id on hardhat network ...where do I get project Id from as mentioned in env.example
The changes in navbar is already in the code of navbar still no affect
@BahadorGh yes I deployed without project id on hardhat network ...where do I get project Id from as mentioned in env.example
You can sign up in Infura.io and create a project there to get project id
Hey bro do like this can solve problem .
root.render(
<ThirdwebProvider activeChain="goerli" clientId="5">
<Router>
<StateContextProvider>
<App />
</StateContextProvider>
</Router>
</ThirdwebProvider>
All the solution mentioned previously doesn't work for me ..changing to activeChainId...also i am using sepolia