This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Introduce toy runtime for testing inside substrate. #66
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Repot files in test-runtime. - Rename troublesome `Joiner::join` to `Joiner::and`. - Rework `Slicable` to dedup code.
Also rename `as_slice_then` to `with_encoded`.
rphmeier
reviewed
Feb 8, 2018
(&b"sta:spe"[..], vec![].join(&self.sessions_per_era)), | ||
(&b"sta:vac"[..], vec![].join(&(self.validators.len() as u32))), | ||
(&b"sta:era"[..], vec![].join(&0u64)), | ||
(&b"gov:apr"[..], vec![].and(&self.approval_ratio)), |
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.
wishlist: replace all these vec![].and(x)
lines with something like encode(x)
rphmeier
reviewed
Feb 8, 2018
/// How much to send. | ||
pub amount: u64, | ||
/// How much to send. | ||
pub nonce: u64, |
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.
wrong comment on nonce
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.
fixed
cc @rphmeier |
shouldn't it be built on #68 ? |
arkpar
approved these changes
Feb 9, 2018
tomaka
pushed a commit
to tomaka/polkadot
that referenced
this pull request
Feb 6, 2019
* Update to latest substrate * Fix as much as I can * Store key out of Environment::init * Fix service compile
JoshOrndorff
referenced
this pull request
in moonbeam-foundation/substrate
Apr 21, 2021
iStrike7
referenced
this pull request
in gasp-xyz/substrate
Aug 3, 2021
iStrike7
referenced
this pull request
in gasp-xyz/substrate
Aug 3, 2021
Feature/fix commeneted tests
liuchengxu
pushed a commit
to autonomys/substrate
that referenced
this pull request
Jun 3, 2022
…ructions Working build run instructions
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Also:
StaticHex
in favour ofhex_literal
).Slicable::to_vec
toencode
.