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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [5.10.1](https://github.com/0xs34n/starknet.js/compare/v5.10.0...v5.10.1) (2023-05-16)
2
+
3
+ ### Bug Fixes
4
+
5
+ - c1 acc execute props order, c1 test flag, local testing fix ([d86057c](https://github.com/0xs34n/starknet.js/commit/d86057cefe9e4053dac6d45d043401605246d3ed))
6
+
1
7
  # [5.10.0](https://github.com/0xs34n/starknet.js/compare/v5.9.2...v5.10.0) (2023-05-10)
2
8
 
3
9
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -2664,7 +2664,7 @@ declare class Account extends Provider implements AccountInterface {
2664
2664
  * If contract already declared returned transaction_hash is ''.
2665
2665
  * Method will pass even if contract is already declared
2666
2666
  * @param payload DeclareContractPayload
2667
- * @param transactionsDetail (optional) InvocationsDetails = {}
2667
+ * @param transactionsDetail (optional) InvocationsDetails = \{\}
2668
2668
  * @returns DeclareContractResponse
2669
2669
  */
2670
2670
  declareIfNot(payload: DeclareContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeclareContractResponse>;
@@ -14001,11 +14001,16 @@ ${res.tx_failure_reason.error_message}` : res.tx_status;
14001
14001
  return callArray;
14002
14002
  };
14003
14003
  var fromCallsToExecuteCalldata_cairo1 = (calls) => {
14004
- return CallData.compile({ calls });
14004
+ const orderCalls = calls.map((call) => ({
14005
+ contractAddress: call.contractAddress,
14006
+ entrypoint: call.entrypoint,
14007
+ calldata: call.calldata
14008
+ }));
14009
+ return CallData.compile({ orderCalls });
14005
14010
  };
14006
14011
  var getExecuteCalldata = (calls, cairoVersion = "0") => {
14007
14012
  if (cairoVersion === "1") {
14008
- return CallData.compile({ calls });
14013
+ return fromCallsToExecuteCalldata_cairo1(calls);
14009
14014
  }
14010
14015
  return fromCallsToExecuteCalldata(calls);
14011
14016
  };