Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Fix: Remove use of serde_json for getting public
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbenaron authored Jul 26, 2022
1 parent 2788d9f commit 7fe24ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ impl IntoAsync<AppContext> for CliOpts {
.await
.expect("Couldn't parse public key response from bundler");

let public_response = serde_json::from_str::<String>(&n_response).unwrap();
let bundler_jwk =
public_only_jwk_from_rsa_n(&public_response).expect("Failed to decode bundler key");
public_only_jwk_from_rsa_n(&n_response).expect("Failed to decode bundler key");
let validator_jwk: JsonWebKey = {
let file = fs::read_to_string(&self.validator_key).unwrap();
file.parse().unwrap()
Expand Down

0 comments on commit 7fe24ea

Please sign in to comment.