MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / next_state

Method next_state

fendermint/testing/src/smt.rs:278–286  ·  view source on GitHub ↗
(&self, cmd: &Self::Command, state: Self::State)

Source from the content-addressed store, hash-verified

276 }
277
278 fn next_state(&self, cmd: &Self::Command, state: Self::State) -> Self::State {
279 use CounterCommand::*;
280 match cmd {
281 Inc => state + 1,
282 Dec => state - 1,
283 Reset => 0,
284 Get => state,
285 }
286 }
287
288 fn check_system(
289 &self,

Callers 1

runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected