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
7 changes: 5 additions & 2 deletions transaction-status/src/parse_associated_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ pub fn parse_associated_token(
let ata_instruction = if instruction.data.is_empty() {
AssociatedTokenAccountInstruction::Create
} else {
AssociatedTokenAccountInstruction::try_from_slice(&instruction.data)
.map_err(|_| ParseInstructionError::InstructionNotParsable(ParsableProgram::SplToken))?
AssociatedTokenAccountInstruction::try_from_slice(&instruction.data).map_err(|_| {
ParseInstructionError::InstructionNotParsable(
ParsableProgram::SplAssociatedTokenAccount,
)
})?
};

match ata_instruction {
Expand Down
Loading