-
Notifications
You must be signed in to change notification settings - Fork 70
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
💉 Inject metadata into signer #3872
Conversation
WRadoslaw
commented
Nov 22, 2022
•
edited by thesan
Loading
edited by thesan
- Add Chain Metadata For Signers #3831
- Send Tx Metadata to Signer #3871
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const sign = useCallback(() => send('SIGN'), [service]) | ||
const sign = useCallback(() => { | ||
if (wallet && api) { | ||
return wallet.updateMetadata(api.chainInfo).then(() => send('SIGN')) |
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.
Just for clarification: will this ask the user to update metadata every time a tx is signed or does the signer silently disregard the request if it is the same already?
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.
Yeah, it will be silenced if the version of the specification for given rpc is the same as in the extension
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.
@WRadoslaw sorry it took me a while to get back to this one.
Nice work! I just made a few changes to still be able to fallback to the original ApiRx
in one line change.
Hopefully the CI will pass 🤞
14693cc
to
bc93094
Compare
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.
Tested here 👍
Tested on https://dao-git-feature-inject-metadata-into-signer-joystream.vercel.app/ @thesan All is works as expected. I am not encountered any problems with updating metadata Chrome✅ Polkadot(successfully updated metadata/wallet is ok) Brave✅ Polkadot(successfully updated metadata/wallet is ok) Firefox✅ Polkadot(successfully updated metadata/wallet is ok) |
Great work @ivanturlakov 🙌
|