Skip to content

Commit c850d16

Browse files
committed
change pda deriver fn name
1 parent bbe5202 commit c850d16

3 files changed

Lines changed: 3 additions & 3 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.10"
3+
version = "0.0.11"
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ 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 derive_pda(seeds: &[u8]) -> (Pubkey, u8) {
110+
fn pda_derive(seeds: &[u8]) -> (Pubkey, u8) {
111111
find_program_address(&[seeds], &Self::PROGRAM_ID)
112112
}
113113
/// Creates a PDA from values in the account

0 commit comments

Comments
 (0)