Skip to content

Commit ae3ebac

Browse files
committed
pda_derive update
1 parent c850d16 commit ae3ebac

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/putils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "putils"
3-
version = "0.0.11"
3+
version = "0.0.12"
44
description = "Utilities for writing Solana programs with the pinocchio framework"
55
keywords = ["solana", "pinocchio"]
66
documentation = "https://docs.rs/putils/latest/putils/"

crates/putils/src/account.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ pub trait AccountRead: AccountDeserialize + PdaDeriver + Sized {
107107
/// The PdaDeriver trait is used to define how to derive a PDA for a specific account
108108
pub trait PdaDeriver: ProgramId {
109109
/// Derives a PDA from the provided seeds
110-
fn pda_derive(seeds: &[u8]) -> (Pubkey, u8) {
111-
find_program_address(&[seeds], &Self::PROGRAM_ID)
110+
fn pda_derive(seeds: &[&[u8]]) -> (Pubkey, u8) {
111+
find_program_address(seeds, &Self::PROGRAM_ID)
112112
}
113113
/// Creates a PDA from values in the account
114114
fn create_pda(&self) -> Pubkey;

0 commit comments

Comments
 (0)