Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Aursen committed Jun 26, 2023
1 parent 5bf7272 commit b31a3f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lang/syn/src/codegen/accounts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ pub fn generate(accs: &AccountsStruct) -> proc_macro2::TokenStream {
#impl_to_account_infos
#impl_to_account_metas
#impl_exit
#bumps_struct

#__client_accounts_mod
#__cpi_client_accounts_mod

#bumps_struct
}
}

Expand Down
6 changes: 3 additions & 3 deletions lang/syn/src/codegen/accounts/try_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn generate(accs: &AccountsStruct) -> proc_macro2::TokenStream {

let constraints = generate_constraints(accs);
let accounts_instance = generate_accounts_instance(accs);
let bumps_stuct_name = bumps::generate_bumps_name(&accs.ident);
let bumps_struct_name = bumps::generate_bumps_name(&accs.ident);

let ix_de = match &accs.instruction_api {
None => quote! {},
Expand Down Expand Up @@ -116,13 +116,13 @@ pub fn generate(accs: &AccountsStruct) -> proc_macro2::TokenStream {

quote! {
#[automatically_derived]
impl<#combined_generics> anchor_lang::Accounts<#trait_generics, #bumps_stuct_name> for #name<#struct_generics> #where_clause {
impl<#combined_generics> anchor_lang::Accounts<#trait_generics, #bumps_struct_name> for #name<#struct_generics> #where_clause {
#[inline(never)]
fn try_accounts(
__program_id: &anchor_lang::solana_program::pubkey::Pubkey,
__accounts: &mut &[anchor_lang::solana_program::account_info::AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut #bumps_stuct_name,
__bumps: &mut #bumps_struct_name,
__reallocs: &mut std::collections::BTreeSet<anchor_lang::solana_program::pubkey::Pubkey>,
) -> anchor_lang::Result<Self> {
// Deserialize instruction, if declared.
Expand Down

0 comments on commit b31a3f7

Please sign in to comment.