-
Notifications
You must be signed in to change notification settings - Fork 15
PoP tests #379
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
base: master
Are you sure you want to change the base?
PoP tests #379
Conversation
| Sudo: { | ||
| key: defaultAccounts.alice.address, | ||
| }, |
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.
I don't think we have sudo in polkadot and kusama
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.
True, I will switch to governance origins
| await fundAccount(peopleClient, defaultAccounts.alice.address) | ||
|
|
||
| const interveneTx = peopleClient.api.tx.mobRule.intervene(latestCaseIndex, { Truth: { True: null } }) | ||
| const sudoInterveneTx = peopleClient.api.tx.sudo.sudo(interveneTx) |
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.
Did you need Alice as sudo to be able to submit this extrinsic with a root origin?
Normally, this would be done by injecting the desired call/origin into the scheduler pallet's storage for execution next block, but the People chain does not have that pallet available (unless PoP changes that).
Alternatively, you can send an XCM Transact from the relay chain to the people chain containing this mobRule.intervene extrinsic.
Check out sendXcmFromRelayToPeople in packages/shared/src/people.ts.
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.
Good help that! Thank you
|
Let me know when you want a review! |
E2E tests of PoP functionalities:
Bandersnatch keys used in the tests were generated with the script in this PR: paritytech/verifiable#24
These tests are made to work with this runtime: https://github.com/paritytech/individuality-runtimes/pull/2 built with config attribute "testing", needed to disable bulletin chain communication - to fix.