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
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
In v6 of ether.js they have renamed Web3Provider with BrowserProvider
when I'm trying to use BrowserProvider provider with AlphaRouter like this
const provider = new ethers.BrowserProvider(config);
const router = new AlphaRouter({
chainId,
provider,
});
its giving error
TS2740: Type BrowserProvider is missing the following properties from type BaseProvider : _networkPromise, _events, formatter, _emitted , and 36 more.
alpha-router.d.ts(27, 5): The expected type comes from property provider which is declared here on type AlphaRouterParams
because Provider in the AlphaRouter is of type BaseProvider which comes from '@ethersproject/providers'
The text was updated successfully, but these errors were encountered:
You should open this issue in the smart-order-router sdk if this affects you @sbeben . The v3-sdk is a different package.
Maybe there is a workaround that I am not aware of.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
In v6 of ether.js they have renamed Web3Provider with BrowserProvider
when I'm trying to use BrowserProvider provider with AlphaRouter like this
const provider = new ethers.BrowserProvider(config);
const router = new AlphaRouter({
chainId,
provider,
});
its giving error
TS2740: Type BrowserProvider is missing the following properties from type BaseProvider : _networkPromise, _events, formatter, _emitted , and 36 more.
alpha-router.d.ts(27, 5): The expected type comes from property provider which is declared here on type AlphaRouterParams
because Provider in the AlphaRouter is of type BaseProvider which comes from '@ethersproject/providers'
The text was updated successfully, but these errors were encountered: