Skip to content

Commit

Permalink
empty private key done
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Jun 6, 2024
1 parent a5d0d12 commit 38d4381
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ impl AuthOpts {
}

if let Some(key) = &self.private_key {
if key.is_empty() {
return Err(eyre!("empty private key"));
}
return wallet!(key);
}

Expand Down

0 comments on commit 38d4381

Please sign in to comment.