adrianhajdin / project_crowdfunding

With a stunning design, connected to the blockchain, metamask pairing, interaction with smart contracts, sending Ethereum through the blockchain network, and writing solidity code.
https://jsmastery.pro
680 stars 372 forks source link

How can we change the currency or network? #46

Closed gracexnn closed 1 year ago

gracexnn commented 1 year ago

Hello i tested this app. It works perfectly fine on goerli, but i changed configs of hardhat and in main.jsx <ThirdwebProvider desiredChainId={ChainId.Polygon}>like this. but still doesnt work. Can someone help me please.

DoxxSvm commented 1 year ago

You can try this

<ThirdwebProvider activeChain="polygon">
    <Component />
</ThirdwebProvider>

Make sure you have deployed the contract on Polygon and replaced the correct Contract Address. Also have a look at your default network in hardhat.config.js file

gracexnn commented 1 year ago

thank you @DoxxSvm