Skip to content

Commit

Permalink
Filling out processor match statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Feb 17, 2024
1 parent c2ff054 commit 5d5d808
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions programs/mpl-asset/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,42 @@ pub fn process_instruction<'a>(
msg!("Instruction: Create");
create(accounts, args)
}
MplAssetInstruction::Migrate(args) => {
msg!("Instruction: Migrate");
migrate(accounts, args)
}
MplAssetInstruction::Delegate(args) => {
msg!("Instruction: Delegate");
delegate(accounts, args)
}
MplAssetInstruction::Burn(args) => {
msg!("Instruction: Burn");
burn(accounts, args)
}
MplAssetInstruction::Transfer(args) => {
msg!("Instruction: Transfer");
transfer(accounts, args)
}
MplAssetInstruction::Update(args) => {
msg!("Instruction: Update");
update(accounts, args)
}
MplAssetInstruction::Freeze(args) => {
msg!("Instruction: Freeze");
freeze(accounts, args)
}
MplAssetInstruction::Thaw(args) => {
msg!("Instruction: Thaw");
thaw(accounts, args)
}
MplAssetInstruction::Compress(args) => {
msg!("Instruction: Compress");
compress(accounts, args)
}
MplAssetInstruction::Decompress(args) => {
msg!("Instruction: Decompress");
decompress(accounts, args)
}
_ => Err(ProgramError::InvalidInstructionData),
}
}

0 comments on commit 5d5d808

Please sign in to comment.