-
Notifications
You must be signed in to change notification settings - Fork 169
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
fix: Support cc3 #481
fix: Support cc3 #481
Conversation
Tbaut
commented
Dec 2, 2019
•
edited
Loading
edited
- closes Update Kusama to CC3 and Metadata v9 #479
@@ -46,13 +45,12 @@ const SUBSTRATE_ID = new Uint8Array([0x53]); | |||
const CRYPTO_SR25519 = new Uint8Array([0x01]); | |||
const CMD_SIGN_MORTAL = new Uint8Array([0]); | |||
const CMD_SIGN_MSG = new Uint8Array([3]); | |||
const registry = new TypeRegistry(); | |||
new MetaData(registry, kusamaData); |
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 new part is not nice, and trigger an eslint warning of do not use new with side effect
, but before figure it out with Jaco, let us use this to fix the current problem.
The way of registry.setMetaData(new MetaData(registry, kusamaData))
does not work and give an error.
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.
Can't approve this PR because I opened it. Nevertheless tested staking, nominating, sudo transfering.. and working well :)
✔️
Let me fix the 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.
lgtm