-
Notifications
You must be signed in to change notification settings - Fork 72
Extension - Update for patch chain #4382
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
base: subwallet-dev
Are you sure you want to change the base?
Conversation
🚀 Deployed on https://pr-4382--sw-web-runner.netlify.app |
|
||
if (duplicatedDefaultSlug.length > 0) { | ||
deprecatedChainMap[storedSlug] = duplicatedDefaultSlug; | ||
deprecatedChains.push(storedSlug); |
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.
Don't remove deprecated chains in the result?
if (!duplicated && !deprecated) { | ||
mergedAssetRegistry[storedAssetInfo.slug] = storedAssetInfo; | ||
} else { | ||
deprecatedAssets.push(storedAssetInfo.slug); |
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.
Don't remove deprecated assets in the result?
|
||
// Update custom assets of merged custom chains | ||
Object.values(storedAssetRegistry).forEach((storedAsset) => { | ||
if (_isCustomAsset(storedAsset.slug) && Object.keys(deprecatedChainMap).includes(storedAsset.originChain)) { |
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.
Only custom asset?
const duplicatedDefaultSlug = this.checkExistedPredefinedChain(latestChainInfo, storedChainInfo.substrateInfo?.genesisHash, storedChainInfo.evmInfo?.evmChainId); | ||
|
||
if (duplicatedDefaultSlug.length > 0) { | ||
deprecatedChainMap[storedSlug] = duplicatedDefaultSlug; |
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.
In case duplicate, have to migrate setting
if (!duplicated && !deprecated) { | ||
mergedAssetRegistry[storedAssetInfo.slug] = storedAssetInfo; | ||
} else { | ||
deprecatedAssets.push(storedAssetInfo.slug); |
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.
Have to migrate setting
No description provided.