From b3e31a8cbfc30d75af031edf4273c9865dfe4a83 Mon Sep 17 00:00:00 2001 From: Arun Jangra Date: Wed, 8 Jan 2025 01:18:31 +0530 Subject: [PATCH] feat : updated app-chain core contract call params --- .../src/interfaces/core_contract.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/l3/appchain-core-contract-client/src/interfaces/core_contract.rs b/crates/l3/appchain-core-contract-client/src/interfaces/core_contract.rs index 9c05725..e4cb6be 100644 --- a/crates/l3/appchain-core-contract-client/src/interfaces/core_contract.rs +++ b/crates/l3/appchain-core-contract-client/src/interfaces/core_contract.rs @@ -15,11 +15,13 @@ impl CoreContract { pub async fn update_state( &self, + snos_output: Vec, program_output: Vec, onchain_data_hash: Felt, onchain_data_size: Felt, ) -> Result { - let mut calldata = Vec::with_capacity(program_output.len() + 2); + let mut calldata = Vec::with_capacity(snos_output.len() + program_output.len() + 2); + calldata.extend(snos_output); calldata.extend(program_output); calldata.push(onchain_data_hash); calldata.push(onchain_data_size);