-
Notifications
You must be signed in to change notification settings - Fork 131
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 encode-call
CLI options
#868
Conversation
let hex = encode_call.encode().unwrap(); | ||
|
||
// then | ||
assert!(format!("{:?}", hex).starts_with("0x080154556e69782074696d653a")); |
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.
Default payload is using current time, right? So this test will always fail
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.
Note that this one is not exact, but only checks the beginning (.starts_with
). The timestamp comes after some prefix, so we only check the prefix.
* added Polkadot constants * remove hardcoded constants * cargo +nightly fmt * add const existential deposit * update * cargo +nightly fmt * not pulling * readd constants.rs modules * update * Cargo.lock * update * add balance constants * Update polkadot-parachains/statemine/src/constants.rs Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com> * cargo fmt Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com>
* Add tests. * Fix default and conflicting options. * Fix default variant. * Update tests.
* Add tests. * Fix default and conflicting options. * Fix default variant. * Update tests.
Related #863
Replaces #865
I've added a bunch of remark tests to make sure that the CLI parsing works correctly. The change was supposed to be backward compatible, but I've incorrectly set
conflicts_with
and forgot aboutdefault_value
.