forked from nervosnetwork/ckb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3345: fix(ckb cli) add h256 validator for --assume-valid-target and ba-code-hash r=quake a=chanhsu001 fix(ckb cli) add h256 validator for --assume-valid-target and ba-code-hash ### What problem does this PR solve? - add H256 validator for `ckb init --ba-code-hash` and `ckb run --assume-valid-target` replace naive is_hex check. - add related 1 testcase ### What is changed and how it works? now cli report error at parsing phase, prompt invalid h256 message, instead of running error. ### Related changes - PR to update `owner/repo`: Tests <!-- At least one of them must be included. --> - Unit test - Integration test ### Release note <!-- Choose from None, Title Only and Note. Bugfixes or new features need a release note. --> ```release-note Title Only: Include only the PR title in the release note. ``` Co-authored-by: chanhsu <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
14 deletions.
There are no files selected for viewing
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
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