diff --git a/sdk/program/src/pubkey.rs b/sdk/program/src/pubkey.rs index 04fcc69dc9185a..eac8e7623fe550 100644 --- a/sdk/program/src/pubkey.rs +++ b/sdk/program/src/pubkey.rs @@ -627,7 +627,7 @@ impl Pubkey { } } - pub fn to_bytes(self) -> [u8; 32] { + pub const fn to_bytes(self) -> [u8; 32] { self.0 }