starknet 6.1.3 → 6.1.4

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
+ ## [6.1.4](https://github.com/starknet-io/starknet.js/compare/v6.1.3...v6.1.4) (2024-02-26)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **Calldata.compile:** do not split long `entrypoint` names before calling `getSelectorFromName` ([9434bcd](https://github.com/starknet-io/starknet.js/commit/9434bcddf74069c7e5bdecbac94017ae23cd2a45))
6
+
1
7
  ## [6.1.3](https://github.com/starknet-io/starknet.js/compare/v6.1.2...v6.1.3) (2024-02-23)
2
8
 
3
9
  ### Bug Fixes
@@ -17477,10 +17477,10 @@ var starknet = (() => {
17477
17477
  const oe = Array.isArray(o) ? [o.length.toString(), ...o] : o;
17478
17478
  return Object.entries(oe).flatMap(([k, v]) => {
17479
17479
  let value = v;
17480
- if (isLongText(value))
17481
- value = byteArrayFromString(value);
17482
17480
  if (k === "entrypoint")
17483
17481
  value = getSelectorFromName(value);
17482
+ else if (isLongText(value))
17483
+ value = byteArrayFromString(value);
17484
17484
  const kk = Array.isArray(oe) && k === "0" ? "$$len" : k;
17485
17485
  if (isBigInt(value))
17486
17486
  return [[`${prefix}${kk}`, felt(value)]];