Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the clientId and activeChain instead the desiredChainId #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alisonborba
Copy link

I was getting an error to fetch the contract:

query.ts:446 Error: Could not fetch bytecode for contract at 0x3cEeEbd92D12345678901234567890 on chain 1, double check that the address and chainId are correct.

And consequently got the error on creating a campaign: error TypeError: Cannot read properties of undefined (reading 'call').

This merge request solves the problem using the activeChain and clientId (got at https://thirdweb.com/dashboard/settings) instead of the desiredChainId on .

@jayanthpwr
Copy link

Thanks for the help, king!

@rahulsingh-99
Copy link

But I'm still getting errors that goerli is not supported on chains

@jayanthpwr
Copy link

Yes, Goerli was deprecated for test networks in 2023. I switched to Sepolia and altered the activeChain of main.jsx file accordingly to "sepolia"

@rahulsingh-99
Copy link

Can you give me the code because I tried every single thing but I'm still getting that error

@jayanthpwr
Copy link

I'm unable to do so, as I don't have the write access. You can refer what @alisonborba has done and enter sepolia instead with your personal Thirdweb clientId

@rahulsingh-99
Copy link

@alisonborba help me man I did not get any solutions after doing this activeChain and chainId I still getting this Could not fetch bytecode for contract at error

@jayanthpwr
Copy link

image
You can refer your clientID of your contract from this URL: https://thirdweb.com/dashboard/settings/api-keys
Then put in activeChain="sepolia".
If you're still preferring Goerli, I think the error may persist.

@rahulsingh-99
Copy link

code
error
Still facing the same issue

@RathoreAbhiii
Copy link

code error Still facing the same issue

It's not 'chainId'. Replace it with clientId='your_client_id'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants