pub fn build_fpi_script(
code_builder: CodeBuilder,
foreign_account_id: AccountId,
procedure_root: Word,
args: &[Felt],
) -> Result<TransactionScript, TransactionRequestError>Expand description
Builds a transaction script that invokes the procedure with the given root on a foreign account.
args are the procedure’s inputs, pushed so that args[0] ends up on top of the stack. The
kernel reads them as a fixed window of MIN_STACK_DEPTH felts, so no more may be passed.
The script leaves the procedure’s outputs on top of the stack and drops the rest.