sdk: support Pubkey::to_bytes as constexpr (#220)

This commit is contained in:
ripatel-fd 2024-03-13 13:24:39 +01:00 committed by GitHub
parent 91bff85ffc
commit 9b16df25d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ impl Pubkey {
}
}
pub fn to_bytes(self) -> [u8; 32] {
pub const fn to_bytes(self) -> [u8; 32] {
self.0
}