-
Notifications
You must be signed in to change notification settings - Fork 360
Instantiate contracts via chainId from loaded config
#3313
Conversation
ESLint Summary View Full Report
Report generated by eslint-plus-action |
Pull Request Test Coverage Report for Build 1711915775
💛 - Coveralls |
Deployment links
|
|
E2E Tests Failed Failed tests:
|
|
@iamacook , for rinkeby -> avalanche I can not reproduce, but for avalanche->xdai I still see the issue |
| watcherInterval = setInterval(async () => { | ||
| const web3 = getWeb3() | ||
| const providerInfo = await getProviderInfo(web3) | ||
| instantiateSafeContracts() |
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.
👍
katspaugh
left a comment
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.
💪
usame-algan
left a comment
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.
🚀




What it solves
Resolves #3311
How this PR fixes it
Contracts were being instantiated via the
web3object, meaning that thechainIdcould be stale, i.e. the user is connected to Rinkeby but the unified app is on Avalanche.Instead of relying on the
chainIdfrom theweb3object,_chainId(a local mirror of that from the store) is used instead. This is kept in sync with the current network displayed in the UI via the config middleware (where the contracts are initiated).How to test it
Screenshots