From b358c18cbc4cecddd99cea7b0a1037e5b88bee4a Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Tue, 22 Oct 2024 07:31:34 +0900 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jon C --- token/confidential-transfer/elgamal-registry/Cargo.toml | 2 +- token/confidential-transfer/elgamal-registry/src/instruction.rs | 2 +- token/confidential-transfer/elgamal-registry/src/lib.rs | 2 +- .../src/extension/confidential_transfer/instruction.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/token/confidential-transfer/elgamal-registry/Cargo.toml b/token/confidential-transfer/elgamal-registry/Cargo.toml index 9501994e2de..5c1ac47e916 100644 --- a/token/confidential-transfer/elgamal-registry/Cargo.toml +++ b/token/confidential-transfer/elgamal-registry/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "spl-elgamal-registry" version = "0.1.0" -description = "Solana ElGamal Registry" +description = "Solana ElGamal Registry Program" authors = ["Solana Labs Maintainers "] repository = "https://github.com/solana-labs/solana-program-library" license = "Apache-2.0" diff --git a/token/confidential-transfer/elgamal-registry/src/instruction.rs b/token/confidential-transfer/elgamal-registry/src/instruction.rs index c080cf7aee2..98731713096 100644 --- a/token/confidential-transfer/elgamal-registry/src/instruction.rs +++ b/token/confidential-transfer/elgamal-registry/src/instruction.rs @@ -17,7 +17,7 @@ use { pub enum RegistryInstruction { /// Initialize an ElGamal public key registry. /// - /// 0. `[writeable, signer]` The funding account (must be a system account) + /// 0. `[writable, signer]` The funding account (must be a system account) /// 1. `[writable]` The account to be created /// 2. `[]` The wallet address (will also be the owner address for the /// registry account) diff --git a/token/confidential-transfer/elgamal-registry/src/lib.rs b/token/confidential-transfer/elgamal-registry/src/lib.rs index ed616401745..95139d3aef3 100644 --- a/token/confidential-transfer/elgamal-registry/src/lib.rs +++ b/token/confidential-transfer/elgamal-registry/src/lib.rs @@ -6,7 +6,7 @@ pub mod state; use solana_program::pubkey::Pubkey; /// Seed for the ElGamal registry program-derived address -pub const REGISTRY_ADDRESS_SEED: &[u8] = "elgamal-registry".as_bytes(); +pub const REGISTRY_ADDRESS_SEED: &[u8] = b"elgamal-registry"; /// Derives the ElGamal registry account address and seed for the given wallet /// address diff --git a/token/program-2022/src/extension/confidential_transfer/instruction.rs b/token/program-2022/src/extension/confidential_transfer/instruction.rs index 3619bd8216a..7886ccc6af2 100644 --- a/token/program-2022/src/extension/confidential_transfer/instruction.rs +++ b/token/program-2022/src/extension/confidential_transfer/instruction.rs @@ -487,7 +487,7 @@ pub enum ConfidentialTransferInstruction { /// Accounts expected by this instruction: /// /// * Single owner/delegate - /// 0. `[writeable]` The SPL Token account. + /// 0. `[writable]` The SPL Token account. /// 1. `[]` The corresponding SPL Token mint. /// 2. `[]` The ElGamal registry account. /// 3. `[]` The account owner.