Skip to content

Commit

Permalink
Const masp epoch functions
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Jun 1, 2024
1 parent 96365b2 commit 786dce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core/src/masp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl MaspEpoch {
}

/// Returns a 0 masp epoch
pub fn zero() -> Self {
pub const fn zero() -> Self {
Self(Epoch(0))
}

Expand All @@ -85,7 +85,7 @@ impl MaspEpoch {

/// Initialize a new masp epoch from the provided one
#[cfg(any(test, feature = "testing"))]
pub fn new(epoch: u64) -> Self {
pub const fn new(epoch: u64) -> Self {
Self(Epoch(epoch))
}
}
Expand Down

0 comments on commit 786dce4

Please sign in to comment.