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.mjs CHANGED
@@ -4996,11 +4996,16 @@ var transformCallsToMulticallArrays_cairo1 = (calls) => {
4996
4996
  return callArray;
4997
4997
  };
4998
4998
  var fromCallsToExecuteCalldata_cairo1 = (calls) => {
4999
- return CallData.compile({ calls });
4999
+ const orderCalls = calls.map((call) => ({
5000
+ contractAddress: call.contractAddress,
5001
+ entrypoint: call.entrypoint,
5002
+ calldata: call.calldata
5003
+ }));
5004
+ return CallData.compile({ orderCalls });
5000
5005
  };
5001
5006
  var getExecuteCalldata = (calls, cairoVersion = "0") => {
5002
5007
  if (cairoVersion === "1") {
5003
- return CallData.compile({ calls });
5008
+ return fromCallsToExecuteCalldata_cairo1(calls);
5004
5009
  }
5005
5010
  return fromCallsToExecuteCalldata(calls);
5006
5011
  };