Skip to content

Commit 2ec0df9

Browse files
committed
bugfix: update CLI template initialize_rs to use FindCounterAccountSeeds in idl macro
1 parent 8e96278 commit 2ec0df9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Updated CLI template `increment_rs`: Changed authority validation to use `Authority` type wrapper instead of raw `Pubkey` in `IncrementAccounts` (#297)
1313
- Updated CLI template `states_rs`: Changed `AccountValidate` implementation for `CounterAccount` to use `Authority` type parameter instead of `&Pubkey`, and updated reference type from `Self::Ref<'_>` to `Self::Ptr` (#297)
14+
- Updated CLI template `initialize_rs`: Changed `Seeds` argument in `idl` macro to use `FindCounterAccountSeeds` instead of `FindCounterSeeds` (#297)
1415

1516
## [0.27.0] - 2025-11-07
1617

star_frame_cli/src/template/initialize_rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct InitializeAccounts {
1515
Create(()),
1616
Seeds(CounterAccountSeeds { authority: *self.authority.pubkey() }),
1717
))]
18-
#[idl(arg = Seeds(FindCounterSeeds { authority: seed_path("authority") }))]
18+
#[idl(arg = Seeds(FindCounterAccountSeeds { authority: seed_path("authority") }))]
1919
pub counter: Init<Seeded<Account<CounterAccount>>>,
2020
pub system_program: Program<System>,
2121
}

0 commit comments

Comments
 (0)