Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit c9a918f

Browse files
committed
Avoid Hash's private parts, use AsRef instead
1 parent c5e7ae7 commit c9a918f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

name-service/program/tests/functional.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async fn test_name_service() {
3434
let owner = Keypair::new();
3535

3636
let hashed_root_name: Vec<u8> = hashv(&[(HASH_PREFIX.to_owned() + root_name).as_bytes()])
37-
.0
37+
.as_ref()
3838
.to_vec();
3939
let (root_name_account_key, _) = get_seeds_and_key(
4040
&program_id,
@@ -78,7 +78,7 @@ async fn test_name_service() {
7878
let sol_subdomains_class = Keypair::new();
7979

8080
let hashed_name: Vec<u8> = hashv(&[(HASH_PREFIX.to_owned() + name).as_bytes()])
81-
.0
81+
.as_ref()
8282
.to_vec();
8383
let (name_account_key, _) = get_seeds_and_key(
8484
&program_id,

0 commit comments

Comments
 (0)