You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
Are you running the latest SDK version?
Are you reporting to the correct repository (magic-sdk)?
🐛 Description
Similar to #83, we have the same problem with ethers library: magic.rpcProvider type does not match the expected param type of ethers.providers.Web3Provider constructor.
🤔 Expected behavior
Being able to write const provider = new ethers.providers.Web3Provider(magic.rpcProvider); without a compilation error
💻 Code Sample
const magic = new Magic('PUBLIC_API_KEY');
const provider = new ethers.providers.Web3Provider(magic.rpcProvider);
🌎 Environment
Software
Version(s)
magic-sdk
10.0.0
ethers
5.7.1
Browser
chrome version 106.0.5249.103
yarn
3.2.0
Operating System
macbook pro 2021 16"
The text was updated successfully, but these errors were encountered:
Hi @charesbast and thank you for submitting this issue. I've gone ahead and marked this as a feature request. Will update this thread when we implement the requested changes!
Hey! I am seeing this issue with the latest Magic SDK & React Native. Are you sure @am-hernandez this was a feature request, not an actual bug? It seems that this is recommended way of setting things up, as per your documentation. Current workaround is to cast to any, but that is far from ideal.
✅ Prerequisites
magic-sdk
)?🐛 Description
Similar to #83, we have the same problem with ethers library:
magic.rpcProvider
type does not match the expected param type ofethers.providers.Web3Provider
constructor.🤔 Expected behavior
Being able to write
const provider = new ethers.providers.Web3Provider(magic.rpcProvider);
without a compilation error💻 Code Sample
🌎 Environment
magic-sdk
ethers
yarn
The text was updated successfully, but these errors were encountered: