diff --git a/sdk/src/commitment_config.rs b/sdk/src/commitment_config.rs index a3f7da1cb6..1c5d3d0c8c 100644 --- a/sdk/src/commitment_config.rs +++ b/sdk/src/commitment_config.rs @@ -60,19 +60,19 @@ impl CommitmentConfig { } } - pub fn finalized() -> Self { + pub const fn finalized() -> Self { Self { commitment: CommitmentLevel::Finalized, } } - pub fn confirmed() -> Self { + pub const fn confirmed() -> Self { Self { commitment: CommitmentLevel::Confirmed, } } - pub fn processed() -> Self { + pub const fn processed() -> Self { Self { commitment: CommitmentLevel::Processed, }