Replies: 2 comments
-
I like the idea. I’ll see how it works out if I just allow setting staticNetwork to true. :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is The |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
It would be nice if it is easily possible to use a JsonRpcProvider with staticNetwork, but without knowing the chainId upfront.
The logic would be, that the JsonRpcProvider just queries the chainId once when calling getNetwork() internally and then use this information forever like as if you configured it as "staticNetwork".
Of course this could also be achieved by creating a JsonRpcProvider, getting the chainId and then creating another JsonRpcProvider with a staticNetwork, since the chainId is now known, but it would be more convenient if this could be achieved with one single Provider.
Best,
Alex
Beta Was this translation helpful? Give feedback.
All reactions