Skip to content

Commit

Permalink
mintAccountIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Feb 21, 2025
1 parent afbd738 commit 5f3da80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/localnet/src/solanaSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,10 @@ export const solanaMonitorTransactions = async ({
} else if (
decodedInstruction.name === "deposit_spl_token"
) {
const mintAccountIndex = 3;
const splIndex =
transaction.transaction.message.instructions[0]
.accounts[3];
.accounts[mintAccountIndex];
const asset =
transaction.transaction.message.accountKeys[splIndex];
args[3] = asset.toString();
Expand Down

0 comments on commit 5f3da80

Please sign in to comment.