Skip to content

Commit

Permalink
v1.18: support Pubkey::to_bytes as constexpr (backport of #220) (#1107)
Browse files Browse the repository at this point in the history
sdk: support Pubkey::to_bytes as constexpr (#220)

(cherry picked from commit 9b16df2)

Co-authored-by: ripatel-fd <ripatel+git@jumptrading.com>
  • Loading branch information
mergify[bot] and ripatel-fd committed May 4, 2024
1 parent c8e6fd0 commit a73b6cb
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 @@ -627,7 +627,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 a73b6cb

Please sign in to comment.