Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

test: add parse pk test #2194

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ethers-signers/src/wallet/private_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ mod tests {
use ethers_core::types::Address;
use tempfile::tempdir;

#[test]
fn parse_pk() {
let s = "6f142508b4eea641e33cb2a0161221105086a84584c74245ca463a49effea30b";
let pk: Wallet<SigningKey> = s.parse().unwrap();
}

#[tokio::test]
async fn encrypted_json_keystore() {
// create and store a random encrypted JSON keystore in this directory
Expand Down