Skip to content

Commit

Permalink
Add MachineConfig::set_epoch (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv authored Sep 17, 2024
1 parent 464869e commit b3caaf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fvm/src/machine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ impl MachineContext {
self
}

/// Sets [`MachineContext::epoch`].
pub fn set_epoch(&mut self, epoch: ChainEpoch) -> &mut Self {
self.epoch = epoch;
self
}

/// Set [`MachineContext::circ_supply`].
pub fn set_circulating_supply(&mut self, amt: TokenAmount) -> &mut Self {
self.circ_supply = amt;
Expand Down

0 comments on commit b3caaf6

Please sign in to comment.