From 4abc296482650ceee4cb2542968fca212ccc8407 Mon Sep 17 00:00:00 2001 From: Vladimir Lebedev Date: Fri, 6 Sep 2024 09:02:16 +0300 Subject: [PATCH] fix sendMessage --- src/liteserver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liteserver.rs b/src/liteserver.rs index 9b5fe89..c0d3201 100644 --- a/src/liteserver.rs +++ b/src/liteserver.rs @@ -800,7 +800,7 @@ impl LiteServer { let code = serialize_toc(state_init.code().ok_or(anyhow!("no code in state"))?)?; let data = serialize_toc(state_init.data().ok_or(anyhow!("no data in state"))?)?; let mc_state = self.engine.load_state(&reference_id).await?; - let config = mc_state.shard_state_extra()?.config.write_to_bytes()?; + let config = mc_state.shard_state_extra()?.config.config_params.write_to_bytes()?; let balance = acc.balance().and_then(|x| x.grams.as_u64()).unwrap_or(0); let result = EmulatorBuilder::new(&code, &data) .with_gas_limit(1000000)