Skip to content

Commit

Permalink
use repr(u8) for enums in token lending
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Feb 28, 2024
1 parent c5e7e42 commit b3f5a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions token-lending/program/src/pyth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct AccKey {
}

#[derive(PartialEq, Copy, Clone)]
#[repr(C)]
#[repr(u8)]
pub enum AccountType {
Unknown,
Mapping,
Expand All @@ -30,7 +30,7 @@ pub enum AccountType {
}

#[derive(PartialEq, Copy, Clone)]
#[repr(C)]
#[repr(u8)]
pub enum PriceStatus {
Unknown,
Trading,
Expand All @@ -39,7 +39,7 @@ pub enum PriceStatus {
}

#[derive(PartialEq, Copy, Clone)]
#[repr(C)]
#[repr(u8)]
pub enum CorpAction {
NoCorpAct,
}
Expand All @@ -63,7 +63,7 @@ pub struct PriceComp {
}

#[derive(PartialEq, Copy, Clone)]
#[repr(C)]
#[repr(u8)]
pub enum PriceType {
Unknown,
Price,
Expand Down

0 comments on commit b3f5a4a

Please sign in to comment.