-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure chain exists in networksMeta #1476
Conversation
main/store/migrations/index.js
Outdated
// ensure chain exists in networksMeta | ||
initial.main.networksMeta.ethereum[id] = initial.main.networksMeta.ethereum[id] || {} | ||
|
||
const { nativeCurrency } = initial.main.networksMeta.ethereum[id] |
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.
I don't think this is quite right, it still throws an exception below when trying to reference an undefined nativeCurrency
. I'm updating and adding a couple tests
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.
ok, could probably do with a test for the case where a chain has no networksMeta value too
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.
yep, there's one in there
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.
Approved @mholtzman's changes
No description provided.