Skip to content

Commit 5fd1bad

Browse files
authored
Merge pull request #70 from staratlasmeta/stegaBOB/feat/cleanup
Chore: housekeeping
2 parents bf82d2b + b294d98 commit 5fd1bad

File tree

39 files changed

+849
-1645
lines changed

39 files changed

+849
-1645
lines changed

framework/example_programs/counter/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub struct CreateCounterIx {
3939
#[derive(AccountSet)]
4040
pub struct CreateCounterAccounts<'info> {
4141
#[account_set(funder)]
42-
pub funder: Signer<Writable<SystemAccount<'info>>>,
42+
pub funder: Signer<Mut<SystemAccount<'info>>>,
4343
pub owner: SystemAccount<'info>,
4444
#[validate(arg = (
4545
CreateIfNeeded(()),
@@ -92,7 +92,7 @@ pub struct UpdateCounterSignerIx;
9292
pub struct UpdateCounterSignerAccounts<'info> {
9393
pub signer: Signer<SystemAccount<'info>>,
9494
pub new_signer: SystemAccount<'info>,
95-
pub counter: Writable<DataAccount<'info, CounterAccount>>,
95+
pub counter: Mut<DataAccount<'info, CounterAccount>>,
9696
}
9797

9898
impl<'info> UpdateCounterSignerAccounts<'info> {
@@ -140,7 +140,7 @@ pub struct CountIx {
140140
#[validate(extra_validation = self.validate())]
141141
pub struct CountAccounts<'info> {
142142
pub owner: Signer<SystemAccount<'info>>,
143-
pub counter: Writable<DataAccount<'info, CounterAccount>>,
143+
pub counter: Mut<DataAccount<'info, CounterAccount>>,
144144
}
145145

146146
impl<'info> CountAccounts<'info> {
@@ -189,9 +189,9 @@ pub struct CloseCounterAccounts<'info> {
189189
#[validate(arg = &self.counter.data()?.signer)]
190190
pub signer: Signer<SystemAccount<'info>>,
191191
#[account_set(recipient)]
192-
pub funds_to: Writable<SystemAccount<'info>>,
192+
pub funds_to: Mut<SystemAccount<'info>>,
193193
#[cleanup(arg = CloseAccountAuto)]
194-
pub counter: Writable<WrappedCounter<'info>>,
194+
pub counter: Mut<WrappedCounter<'info>>,
195195
}
196196

197197
impl StarFrameInstruction for CloseCounterIx {

framework/example_programs/faction_enlistment/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub struct ProcessEnlistPlayer<'info> {
8484
pub player_faction_account: Init<Seeded<DataAccount<'info, PlayerFactionData>>>,
8585
/// The player account
8686
#[account_set(funder)]
87-
pub player_account: Writable<Signer<SystemAccount<'info>>>,
87+
pub player_account: Mut<Signer<SystemAccount<'info>>>,
8888
/// Solana System program
8989
#[account_set(system_program)]
9090
pub system_program: Program<'info, SystemProgram>,

framework/example_programs/tic_tac_toe/Cargo.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

framework/example_programs/tic_tac_toe/src/instructions/create_duel.rs

Lines changed: 0 additions & 105 deletions
This file was deleted.

framework/example_programs/tic_tac_toe/src/instructions/create_game.rs

Lines changed: 0 additions & 113 deletions
This file was deleted.

framework/example_programs/tic_tac_toe/src/instructions/make_move.rs

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)