Skip to content

Commit 021381f

Browse files
author
vlad
committed
check-hw fix (using correct token)
1 parent 325b265 commit 021381f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

check-hw/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ async fn get_allowed_hashes_async() -> Result<HashSet<[u8; 20]>, Box<dyn Error>>
177177

178178

179179
let url = "https://api.github.com/repos/scrtlabs/whitelist-test/contents/whitelist.txt?ref=master";
180-
let token = "";
180+
let token_hex = "6769746875625F7061745F313141434A4E50535130424350396277544D79324B4F5F42683849554B56446C493545714D727A7A6B44726677475A524E457A6E526B69506D5051527853636C524D59334243513551585563377339646334";
181+
let token = String::from_utf8(hex::decode(token_hex).unwrap()).unwrap();
181182

182183
let https = hyper_rustls::HttpsConnectorBuilder::new()
183184
.with_native_roots()
@@ -197,7 +198,7 @@ async fn get_allowed_hashes_async() -> Result<HashSet<[u8; 20]>, Box<dyn Error>>
197198

198199
// Read the body
199200
let bytes = hyper::body::to_bytes(response.into_body()).await?;
200-
let text = String::from_utf8(bytes.to_vec())?;
201+
let text = String::from_utf8(bytes.to_vec())?;
201202

202203
let mut set: HashSet<[u8; 20]> = HashSet::new();
203204

0 commit comments

Comments
 (0)