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 Mar 13, 2024
1 parent 91bff85 commit 9b16df2
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 9b16df2

Please sign in to comment.