diff --git a/lang/syn/src/codegen/accounts/mod.rs b/lang/syn/src/codegen/accounts/mod.rs index b766ec707c..50f0977e8e 100644 --- a/lang/syn/src/codegen/accounts/mod.rs +++ b/lang/syn/src/codegen/accounts/mod.rs @@ -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 } } diff --git a/lang/syn/src/codegen/accounts/try_accounts.rs b/lang/syn/src/codegen/accounts/try_accounts.rs index c231fafb8c..469a447c23 100644 --- a/lang/syn/src/codegen/accounts/try_accounts.rs +++ b/lang/syn/src/codegen/accounts/try_accounts.rs @@ -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! {}, @@ -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::Result { // Deserialize instruction, if declared.