Compare commits
1 Commits
77648c7d6d
...
14569e436e
Author | SHA1 | Date |
---|---|---|
Ryan Heywood | 14569e436e |
|
@ -83,7 +83,7 @@ fn validate(
|
||||||
let index = DerivationIndex::new(u32::from_be_bytes(pgp_u32), true)?;
|
let index = DerivationIndex::new(u32::from_be_bytes(pgp_u32), true)?;
|
||||||
|
|
||||||
let path = DerivationPath::from_str(path)?;
|
let path = DerivationPath::from_str(path)?;
|
||||||
assert!(path.len() >= 2, "Expected path of at least m/{index}/account_id'");
|
assert_eq!(2, path.len(), "Expected path of m/{index}/account_id'");
|
||||||
|
|
||||||
let given_index = path.iter().next().expect("checked .len() above");
|
let given_index = path.iter().next().expect("checked .len() above");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
# pipe `cargo metadata --format-version=1` into this
|
|
||||||
|
|
||||||
priority_queue = []
|
priority_queue = []
|
||||||
packages = json.load(sys.stdin)["packages"]
|
packages = json.load(sys.stdin)["packages"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue