-
-
Notifications
You must be signed in to change notification settings - Fork 650
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
[Parity Signer] Add future support for ERC-681 #1945
Conversation
Note: I got tscheck errors when trying to push, but the same errors were thrown on |
If you're using npm its known to throw ts errors due to version mismatch, yarn should work fine |
@@ -94,7 +94,7 @@ class QrSignerModal extends React.Component<Props, State> { | |||
return; | |||
} | |||
|
|||
this.props.finalizeSignature(signature); | |||
this.props.finalizeSignature('0x' + signature); |
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.
TODO (for myself): circle back and provide utility function for this.
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.
addHexPrefix
does this from ethereumjs-util
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.
@maciejhirsz You cool with making this small tweak? No reason not to merge after imo.
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.
Sure!
Description
Prepares the Parity Signer address scanning for the future versions that will use ERC-681 formatted strings (more context).
This change is backwards compatible, old (current) versions of Parity Signer should work without changes.
Changes
@parity/qr-signer
to0.3.1
onScan
will now callback with an object containingaddress
andchainId
, so made appropriate adjustments inParitySigner.tsx
.Steps to Test
ethereum:0x5555555555555555555555555555555555555555@42
(chainId is being parsed, but we throw it away right now)