Skip to content

Commit

Permalink
edit account property access in ix body
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrinathNR committed Dec 9, 2024
1 parent d51506a commit 74cf04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rs_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ impl ProgramInstruction {
let right_prop = m.prop.as_ident().ok_or(PoseidonError::IdentNotFound)?.sym.as_ref();
let right_obj_ident = Ident::new(&right_obj.to_case(Case::Snake), proc_macro2::Span::call_site());
let right_prop_ident = Ident::new(&right_prop.to_case(Case::Snake), proc_macro2::Span::call_site());
if let Some(_) = ix_accounts.get(right_obj){
if ix_accounts.get(right_obj).is_some() && right_prop == "key" {
ix_body.push(quote!{
ctx.accounts.#left_obj_ident.#left_prop_ident = ctx.accounts.#right_obj_ident.key();
});
Expand Down

0 comments on commit 74cf04b

Please sign in to comment.