Skip to content
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

Merged
merged 8 commits into from
Dec 2, 2019
Merged

fix: Support cc3 #481

merged 8 commits into from
Dec 2, 2019

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Dec 2, 2019

specs/util/units.spec.js Outdated Show resolved Hide resolved
@hanwencheng hanwencheng marked this pull request as ready for review December 2, 2019 16:35
@@ -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);
Copy link
Contributor

@hanwencheng hanwencheng Dec 2, 2019

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.

@hanwencheng hanwencheng changed the title Support cc3 fix: Support cc3 Dec 2, 2019
Copy link
Contributor Author

@Tbaut Tbaut left a 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 :)

✔️

hanwencheng
hanwencheng previously approved these changes Dec 2, 2019
@hanwencheng
Copy link
Contributor

Let me fix the tests

@hanwencheng hanwencheng merged commit bd3d927 into master Dec 2, 2019
@hanwencheng hanwencheng deleted the tbaut-cc3 branch December 2, 2019 17:03
Copy link
Contributor

@pmespresso pmespresso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Kusama to CC3 and Metadata v9
3 participants