Skip to content

Commit

Permalink
sdk: support Pubkey::to_bytes as constexpr (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ripatel-fd authored and willhickey committed Mar 16, 2024
1 parent 94da52d commit f2d77f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/program/src/pubkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ impl Pubkey {
}
}

pub fn to_bytes(self) -> [u8; 32] {
pub const fn to_bytes(self) -> [u8; 32] {
self.0
}

Expand Down

0 comments on commit f2d77f0

Please sign in to comment.