From f2d77f0209cfeafa3a1f217c2bd7816315b52d68 Mon Sep 17 00:00:00 2001 From: ripatel-fd Date: Wed, 13 Mar 2024 13:24:39 +0100 Subject: [PATCH] sdk: support Pubkey::to_bytes as constexpr (#220) --- sdk/program/src/pubkey.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/program/src/pubkey.rs b/sdk/program/src/pubkey.rs index 728a5cd252d89f..2f1ccbdcfbfd7e 100644 --- a/sdk/program/src/pubkey.rs +++ b/sdk/program/src/pubkey.rs @@ -631,7 +631,7 @@ impl Pubkey { } } - pub fn to_bytes(self) -> [u8; 32] { + pub const fn to_bytes(self) -> [u8; 32] { self.0 }