MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / commit

Method commit

fendermint/testing/contract-test/src/lib.rs:170–193  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

168 }
169
170 pub async fn commit(&mut self) -> Result<()> {
171 let exec_state = self.take_exec_state().await;
172
173 let (
174 state_root,
175 FvmUpdatableParams {
176 app_version,
177 base_fee,
178 circ_supply,
179 power_scale,
180 },
181 _,
182 ) = exec_state.commit().context("failed to commit FVM")?;
183
184 self.state_params.state_root = state_root;
185 self.state_params.app_version = app_version;
186 self.state_params.base_fee = base_fee;
187 self.state_params.circ_supply = circ_supply;
188 self.state_params.power_scale = power_scale;
189
190 eprintln!("self.state_params: {:?}", self.state_params);
191
192 Ok(())
193 }
194
195 pub fn state_params(&self) -> FvmStateParams {
196 self.state_params.clone()

Callers 6

get_commit_signed_headerFunction · 0.45
newMethod · 0.45
test_applying_upgradesFunction · 0.45
test_gas_market_upgradeFunction · 0.45

Calls 2

contextMethod · 0.80
take_exec_stateMethod · 0.45