@@ -5,10 +5,7 @@ use anchor_lang::{
55 prelude:: * ,
66 solana_program:: {
77 bpf_loader_upgradeable,
8- program:: {
9- invoke,
10- invoke_signed,
11- } ,
8+ program:: { invoke, invoke_signed} ,
129 } ,
1310} ;
1411
@@ -86,29 +83,29 @@ pub mod program_authority_escrow {
8683
8784#[ derive( Accounts ) ]
8885pub struct Propose < ' info > {
89- pub current_authority : Signer < ' info > ,
86+ pub current_authority : Signer < ' info > ,
9087 /// CHECK: Unchecked new authority, can be a native wallet or a PDA of another program
91- pub new_authority : AccountInfo < ' info > ,
88+ pub new_authority : AccountInfo < ' info > ,
9289 #[ account( seeds = [ current_authority. key( ) . as_ref( ) , new_authority. key( ) . as_ref( ) ] , bump) ]
93- pub escrow_authority : SystemAccount < ' info > ,
90+ pub escrow_authority : SystemAccount < ' info > ,
9491 #[ account( executable, constraint = matches!( program_account. as_ref( ) , UpgradeableLoaderState :: Program { ..} ) ) ]
95- pub program_account : Account < ' info , UpgradeableLoaderState > ,
92+ pub program_account : Account < ' info , UpgradeableLoaderState > ,
9693 #[ account( mut , seeds = [ program_account. key( ) . as_ref( ) ] , bump, seeds:: program = bpf_upgradable_loader. key( ) ) ]
97- pub program_data : Account < ' info , ProgramData > ,
94+ pub program_data : Account < ' info , ProgramData > ,
9895 pub bpf_upgradable_loader : Program < ' info , BpfUpgradableLoader > ,
9996}
10097
10198#[ derive( Accounts ) ]
10299pub struct Accept < ' info > {
103100 /// CHECK: CPI will have the wrong seeds and fail if this is the wrong current authority
104- pub current_authority : AccountInfo < ' info > ,
105- pub new_authority : Signer < ' info > ,
101+ pub current_authority : AccountInfo < ' info > ,
102+ pub new_authority : Signer < ' info > ,
106103 #[ account( seeds = [ current_authority. key( ) . as_ref( ) , new_authority. key( ) . as_ref( ) ] , bump) ]
107- pub escrow_authority : SystemAccount < ' info > ,
104+ pub escrow_authority : SystemAccount < ' info > ,
108105 #[ account( executable, constraint = matches!( program_account. as_ref( ) , UpgradeableLoaderState :: Program { ..} ) ) ]
109- pub program_account : Account < ' info , UpgradeableLoaderState > ,
106+ pub program_account : Account < ' info , UpgradeableLoaderState > ,
110107 #[ account( mut , seeds = [ program_account. key( ) . as_ref( ) ] , bump, seeds:: program = bpf_upgradable_loader. key( ) ) ]
111- pub program_data : Account < ' info , ProgramData > ,
108+ pub program_data : Account < ' info , ProgramData > ,
112109 pub bpf_upgradable_loader : Program < ' info , BpfUpgradableLoader > ,
113110}
114111
0 commit comments