Skip to content

Commit

Permalink
Avoid Hash's private parts, use AsRef instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Oct 19, 2021
1 parent c5e7ae7 commit c9a918f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions name-service/program/tests/functional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn test_name_service() {
let owner = Keypair::new();

let hashed_root_name: Vec<u8> = 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,
Expand Down Expand Up @@ -78,7 +78,7 @@ async fn test_name_service() {
let sol_subdomains_class = Keypair::new();

let hashed_name: Vec<u8> = hashv(&[(HASH_PREFIX.to_owned() + name).as_bytes()])
.0
.as_ref()
.to_vec();
let (name_account_key, _) = get_seeds_and_key(
&program_id,
Expand Down

0 comments on commit c9a918f

Please sign in to comment.