Skip to content

Commit 71f7f1b

Browse files
committed
Merge #523: Fixing the Inclusivity of Z in StrKeyTranslator
76fb99c Fix the CI failing due to `which` crate (Harshil Jani) ebe3245 Fixing the Inclusivity of Z in StrKeyTranslator (Harshil Jani) Pull request description: Fixing `StrKeyTranslator` in `test_utils.rs` where Z was not included. Closes #496 Signed-off-by: Harshil Jani <[email protected]> ACKs for top commit: apoelstra: ACK 76fb99c Tree-SHA512: 91f73014338c8943ab59bfc4c9e16de44ac6d752f2ce7cb3a84413fbf17bf47d17351ed20707b45ce9c554341a43d0b2faa4ab856d3e734275f5dfd626f4f515
2 parents 64e4545 + 76fb99c commit 71f7f1b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contrib/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ if cargo --version | grep "1\.41\.0"; then
1616
cargo update -p form_urlencoded --precise 1.0.1
1717
cargo update -p once_cell --precise 1.13.1
1818
cargo update -p bzip2 --precise 0.4.2
19+
cargo update -p which --precise 4.3.0
1920
fi
2021

2122
# Pin dependencies required to build with Rust 1.47.0

src/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl StrKeyTranslator {
136136
.collect();
137137
let mut pk_map = HashMap::new();
138138
let mut pkh_map = HashMap::new();
139-
for (i, c) in (b'A'..b'Z').enumerate() {
139+
for (i, c) in (b'A'..=b'Z').enumerate() {
140140
let key = String::from_utf8(vec![c]).unwrap();
141141
pk_map.insert(key.clone(), pks[i]);
142142
pkh_map.insert(key, pks[i].to_pubkeyhash(SigType::Ecdsa));

0 commit comments

Comments
 (0)