Skip to content

Commit

Permalink
change seed for solana_prerequisites test to generate a new address w…
Browse files Browse the repository at this point in the history
…ith 0 balance
  • Loading branch information
shamardy committed Sep 20, 2022
1 parent 4c511eb commit 3af9e93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm2src/coins/solana/solana_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ fn solana_prerequisites() {
// same test as trustwallet
{
let fin = generate_key_pair_from_seed(
"shoot island position soft burden budget tooth cruel issue economy destroy above".to_string(),
"hood vacant left trim hard mushroom device flavor ask better arrest again".to_string(),
);
let public_address = fin.pubkey().to_string();
let priv_key = &fin.secret().to_bytes()[..].to_base58();
assert_eq!(public_address.len(), 44);
assert_eq!(public_address, "2bUBiBNZyD29gP1oV6de7nxowMLoDBtopMMTGgMvjG5m");
assert_eq!(priv_key, "F6czu7fdefbsCDH52JesQrBSJS5Sz25AkPLWFf8zUWhm");
assert_eq!(public_address, "4rmosKwMH7zeaXGbej1PFybZBUyuUNQLf8RfyzCcYvkx");
assert_eq!(priv_key, "CZtxt17aTfDrJrzwBWdVqcmFwVVptW8EX7RRnth9tT3M");
let client = solana_client::rpc_client::RpcClient::new("https://api.testnet.solana.com/".to_string());
let balance = client.get_balance(&fin.pubkey()).expect("Expect to retrieve balance");
assert_eq!(balance, 0);
Expand Down

0 comments on commit 3af9e93

Please sign in to comment.