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

Method put_exec_state

fendermint/testing/contract-test/src/lib.rs:182–186  ·  view source on GitHub ↗

Put the execution state during block execution. Has to be empty.

(&self, state: FvmExecState<MemoryBlockstore>)

Source from the content-addressed store, hash-verified

180
181 /// Put the execution state during block execution. Has to be empty.
182 async fn put_exec_state(&self, state: FvmExecState<MemoryBlockstore>) {
183 let mut guard = self.exec_state.lock().await;
184 assert!(guard.is_none(), "exec state not empty");
185 *guard = Some(state);
186 }
187
188 /// Take the execution state during block execution. Has to be non-empty.
189 async fn take_exec_state(&self) -> FvmExecState<MemoryBlockstore> {

Callers 1

begin_blockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected