Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/sdk-coin-sol/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ export function getTransactionType(transaction: SolTransaction): TransactionType
// check if deactivate instruction does not exist because deactivate can be include a transfer instruction
const memoInstruction = instructions.find((instruction) => getInstructionType(instruction) === 'Memo');
const memoData = memoInstruction?.data.toString('utf-8');
if (memoData?.includes('WalletConnectDefiCustomTx')) {
return TransactionType.CustomTx;
}
if (instructions.filter((instruction) => getInstructionType(instruction) === 'Deactivate').length === 0) {
for (const instruction of instructions) {
const instructionType = getInstructionType(instruction);
Expand Down