-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support multiple evm chains #329
base: master
Are you sure you want to change the base?
Conversation
096f8b2
to
f2eb179
Compare
12e31e8
to
b8e65d1
Compare
const provider = | ||
ethProvider || | ||
(depositChainId && new providers.JsonRpcProvider(cfg.supportedChainIdsByRPC[depositChainId])) || | ||
getDefaultProvider(cfg.ETHEREUM_NETWORK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no ETHEREUM_NETWORK
in the cfg - it is NETWORK
. In docs/configuration.md
it's ETHEREUM_NETWORK
- just has to be NETWORK
everywhere I guess.
const provider = | ||
ethProvider || | ||
(depositChainId && new providers.JsonRpcProvider(cfg.supportedChainIdsByRPC[depositChainId])) || | ||
getDefaultProvider(cfg.ETHEREUM_NETWORK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should check cfg.supportedChainIdsByRPC[depositChainId]
before new providers.JsonRpcProvider...
as at the moment cfg.supportedChainIdsByRPC
is empty and I'm not sure if it will throw or use default
Fixes #324