Skip to content

Commit

Permalink
feat : updated app-chain core contract call params
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdbytes committed Jan 7, 2025
1 parent 73c9f67 commit b3e31a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ impl CoreContract {

pub async fn update_state(
&self,
snos_output: Vec<Felt>,
program_output: Vec<Felt>,
onchain_data_hash: Felt,
onchain_data_size: Felt,
) -> Result<InvokeTransactionResult> {
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);
Expand Down

0 comments on commit b3e31a8

Please sign in to comment.