add hash_fromstr (#3476)

This commit is contained in:
Rob Walker
2019-03-25 12:23:19 -07:00
committed by GitHub
parent 51004881f8
commit 34c051f183
2 changed files with 65 additions and 2 deletions

View File

@@ -65,8 +65,6 @@ mod tests {
let pubkey = Keypair::new().pubkey();
let mut pubkey_base58_str = bs58::encode(pubkey.0).into_string();
dbg!(&pubkey_base58_str);
assert_eq!(pubkey_base58_str.parse::<Pubkey>(), Ok(pubkey));
pubkey_base58_str.push_str(&bs58::encode(pubkey.0).into_string());