Skip to content

Commit

Permalink
add token program acc while using mint acc
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrinathNR committed Dec 10, 2024
1 parent 74cf04b commit 88c407c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rs_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,8 @@ impl ProgramInstruction {
program_mod.add_import("anchor_spl", "token", "Mint");
let cur_ix_acc = ix_accounts.get_mut(&name.clone()).unwrap();
cur_ix_acc.is_mut = true;
ix.uses_token_program = true;
program_mod.add_import("anchor_spl", "token", "Token");
} else if of_type == "TokenAccount" {
ix_accounts.insert(
name.clone(),
Expand Down

0 comments on commit 88c407c

Please sign in to comment.