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

Commit 1213b10

Browse files
committed
Replace to_bytes() of Pubkey to as_bytes()
1 parent 05bd8a6 commit 1213b10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

token/confidential-transfer/elgamal-registry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn get_elgamal_registry_address_and_bump_seed(
1515
program_id: &Pubkey,
1616
) -> (Pubkey, u8) {
1717
Pubkey::find_program_address(
18-
&[REGISTRY_ADDRESS_SEED, &wallet_address.to_bytes()],
18+
&[REGISTRY_ADDRESS_SEED, wallet_address.as_ref()],
1919
program_id,
2020
)
2121
}

token/confidential-transfer/elgamal-registry/src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn process_create_registry_account(
5353

5454
let elgamal_registry_account_seeds: &[&[_]] = &[
5555
REGISTRY_ADDRESS_SEED,
56-
&wallet_account_info.key.to_bytes(),
56+
wallet_account_info.key.as_ref(),
5757
&[bump_seed],
5858
];
5959
let rent = Rent::get()?;

0 commit comments

Comments
 (0)