starknet 5.10.0 → 5.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5067,11 +5067,16 @@ var transformCallsToMulticallArrays_cairo1 = (calls) => {
5067
5067
  return callArray;
5068
5068
  };
5069
5069
  var fromCallsToExecuteCalldata_cairo1 = (calls) => {
5070
- return CallData.compile({ calls });
5070
+ const orderCalls = calls.map((call) => ({
5071
+ contractAddress: call.contractAddress,
5072
+ entrypoint: call.entrypoint,
5073
+ calldata: call.calldata
5074
+ }));
5075
+ return CallData.compile({ orderCalls });
5071
5076
  };
5072
5077
  var getExecuteCalldata = (calls, cairoVersion = "0") => {
5073
5078
  if (cairoVersion === "1") {
5074
- return CallData.compile({ calls });
5079
+ return fromCallsToExecuteCalldata_cairo1(calls);
5075
5080
  }
5076
5081
  return fromCallsToExecuteCalldata(calls);
5077
5082
  };