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 <[email protected]>
  • Loading branch information
2 people authored and yihau committed May 14, 2024
1 parent 651e739 commit d6c7e98
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 d6c7e98

Please sign in to comment.