[Archive] InitializationError: Invalid constructor params, network or sdk url

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by neera.choudhary on 10/17/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


“@web3auth/base”: “^6.1.6”,
“@web3auth/base-provider”: “^6.1.6”,
“@web3auth/ethereum-provider”: “^6.1.6”,
“@web3auth/no-modal”: “^6.1.6”,
“@web3auth/openlogin-adapter”: “^6.1.6”,

Web application

Screenshot 2023-10-17 at 1.38.36 PM
Screenshot 2023-10-17 at 1.38.36 PM2940Ă—578 95.7 KB

@neera.choudhary Thanks for your recent post.

Can you please upgrade to the latest SDK version V7? @web3auth/no-modal - npm

Thank you, @vjgee. I’ve successfully updated the version as per your instructions, and I was able to set up the Sapphire Devnet. However, I’m encountering an issue with the Gas Station Network (GSN) for gasless transactions after the update - the “getting signature is not correct” error.

image
image1883Ă—412 48.7 KB

Can you share your implementation code please?

image
image1148Ă—1060 97.8 KB

@vjgee I have attached the implementation part, now the variable holding connectTo response is also of IProvider type, if you want to have a complete look at the code - we can have a call where I can give you the thorough walkthrough of the code