Function: getOutsideCall()
getOutsideCall(
call):OutsideCall
Defined in: src/utils/outsideExecution.ts:47
Converts a Call object to an OutsideCall object that can be used for an Outside Execution.
Parameters
call
transaction to proceed.
Returns
transaction formatted in conformity to SNIP-9
Example
const call1: Call = {
contractAddress: '0x0123',
entrypoint: 'transfer',
calldata: { recipient: '0xabcd', amount: cairo.uint256(10) },
};
const result = outsideExecution.getOutsideCall(call1);
// result = {
// to: '0x0123',
// selector: getSelectorFromName(call1.entrypoint),
// calldata: ['43981', '10', '0'],
//}