mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-25 23:16:46 +00:00
instruction macro and simplification
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use solana_program::program_error::ProgramError;
|
||||
|
||||
pub trait Discriminator {
|
||||
fn discriminator() -> u8;
|
||||
}
|
||||
|
||||
pub trait AccountDeserialize {
|
||||
fn try_from_bytes(data: &[u8]) -> Result<&Self, ProgramError>;
|
||||
fn try_from_bytes_mut(data: &mut [u8]) -> Result<&mut Self, ProgramError>;
|
||||
}
|
||||
|
||||
pub trait Discriminator {
|
||||
fn discriminator() -> u8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user