File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
star_frame_cli/src/template Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Fixed
11+
12+ - Fixed errors in cli template caused due to breaking changes made in star_frame (#283 )
13+
1014## [ 0.26.2] - 2025-10-15
1115
1216### Fixed
Original file line number Diff line number Diff line change 11use star_frame::prelude::*;
2-
32use instructions::*;
43mod instructions;
54pub mod states;
Original file line number Diff line number Diff line change 1- use star_frame::{eyre::ensure, prelude::*} ;
1+ use star_frame::prelude::*;
22use crate::{name_pascalcase}Error;
33
44#[derive(Debug, GetSeeds, Clone)]
@@ -17,13 +17,9 @@ pub struct CounterAccount {
1717
1818pub struct Authority(pub Pubkey);
1919
20- impl AccountValidate<Authority> for CounterAccount {
21- fn validate_account(self_ref: &Self::Ref<'_>, arg: Authority) -> Result<()> {
22- ensure!(
23- arg.0 == self_ref.authority,
24- "Incorrect authority",
25- {name_pascalcase}Error::IncorrectAuthority
26- );
20+ impl AccountValidate<&Pubkey> for CounterAccount {
21+ fn validate_account(self_ref: &Self::Ref<'_>, signer: &Pubkey) -> Result<()> {
22+ ensure_eq!(&self_ref.authority, signer, {name_pascalcase}Error::IncorrectAuthority);
2723 Ok(())
2824 }
2925}
You can’t perform that action at this time.
0 commit comments