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

Method init

fendermint/vm/interpreter/src/bytes.rs:290–298  ·  view source on GitHub ↗
(
        &self,
        state: Self::State,
        genesis: Self::Genesis,
    )

Source from the content-addressed store, hash-verified

288 type Output = I::Output;
289
290 async fn init(
291 &self,
292 state: Self::State,
293 genesis: Self::Genesis,
294 ) -> anyhow::Result<(Self::State, Self::Output)> {
295 // TODO (IPC-44): Handle the serialized application state as well as `Genesis`.
296 let genesis: Genesis = parse_genesis(&genesis)?;
297 self.inner.init(state, genesis).await
298 }
299}
300
301#[async_trait]

Callers 1

init_genesisFunction · 0.45

Calls 1

parse_genesisFunction · 0.85

Tested by

no test coverage detected