-
Notifications
You must be signed in to change notification settings - Fork 66
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
[Issue 3306] Update signing flow with metadata #3937
base: subwallet-dev
Are you sure you want to change the base?
Conversation
🚀 Deployed on https://pr-3937--sw-web-runner.netlify.app |
if (!metadataV15.isEmpty) { | ||
hexV15 = metadataV15.unwrap().toHex(); | ||
} | ||
const [metadataHex, hexV15] = await Promise.all([ |
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.
Create a new store to metadataV15
and add new function to save.
metadata = this.#koniState.knownMetadata.find((meta: MetadataDef) => | ||
meta.genesisHash === payload.genesisHash); | ||
const [apiMetadata, dbMetadata, dappMetadata] = await Promise.all([ | ||
{ metadata: this.#koniState.getSubstrateApi(chainInfo?.slug ?? '').metadata, source: MetadataSource.API }, |
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.
This metadata not updated after connect with chain
*/ | ||
metadata = this.#koniState.knownMetadata.find((meta: MetadataDef) => | ||
meta.genesisHash === payload.genesisHash); | ||
const [apiMetadata, dbMetadata, dappMetadata] = await Promise.all([ |
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.
Change to get registry
No description provided.