Skip to content

Commit b3caaf6

Browse files
authored
Add MachineConfig::set_epoch (#2049)
1 parent 464869e commit b3caaf6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fvm/src/machine/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ impl MachineContext {
249249
self
250250
}
251251

252+
/// Sets [`MachineContext::epoch`].
253+
pub fn set_epoch(&mut self, epoch: ChainEpoch) -> &mut Self {
254+
self.epoch = epoch;
255+
self
256+
}
257+
252258
/// Set [`MachineContext::circ_supply`].
253259
pub fn set_circulating_supply(&mut self, amt: TokenAmount) -> &mut Self {
254260
self.circ_supply = amt;

0 commit comments

Comments
 (0)