Skip to content

Commit

Permalink
sdk: refactor: clean up entrypoint (#2635)
Browse files Browse the repository at this point in the history
refactor: remove redundant references in entrypoint! macro
  • Loading branch information
andreisilviudragnea authored Aug 22, 2024
1 parent 5e9710a commit 22eec1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/program/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ macro_rules! entrypoint {
pub unsafe extern "C" fn entrypoint(input: *mut u8) -> u64 {
let (program_id, accounts, instruction_data) =
unsafe { $crate::entrypoint::deserialize(input) };
match $process_instruction(&program_id, &accounts, &instruction_data) {
match $process_instruction(program_id, &accounts, instruction_data) {
Ok(()) => $crate::entrypoint::SUCCESS,
Err(error) => error.into(),
}
Expand Down

0 comments on commit 22eec1c

Please sign in to comment.