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 }