From c9a918f5cd8e838c4f1bfc9776349a4ce8af1790 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Tue, 19 Oct 2021 08:45:05 -0700 Subject: [PATCH] Avoid `Hash`'s private parts, use `AsRef` instead --- name-service/program/tests/functional.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/name-service/program/tests/functional.rs b/name-service/program/tests/functional.rs index 7dbc6580e38..40e541f6115 100644 --- a/name-service/program/tests/functional.rs +++ b/name-service/program/tests/functional.rs @@ -34,7 +34,7 @@ async fn test_name_service() { let owner = Keypair::new(); let hashed_root_name: Vec = hashv(&[(HASH_PREFIX.to_owned() + root_name).as_bytes()]) - .0 + .as_ref() .to_vec(); let (root_name_account_key, _) = get_seeds_and_key( &program_id, @@ -78,7 +78,7 @@ async fn test_name_service() { let sol_subdomains_class = Keypair::new(); let hashed_name: Vec = hashv(&[(HASH_PREFIX.to_owned() + name).as_bytes()]) - .0 + .as_ref() .to_vec(); let (name_account_key, _) = get_seeds_and_key( &program_id,