@calimero-network/mero-js 22.2.0 → 22.4.0

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.
@@ -92,8 +92,11 @@ export async function signWarrant(input) {
92
92
  // a u32 count then the elements. u32 HERE; u64 in the preimage above.
93
93
  return hex(concat(context, authorAccount, publicKey, executor, appVersion, u32le(method.length), method, commitment, u32le(accountHeads.length), ...accountHeads, u32le(governanceFloor.length), ...governanceFloor, nonce, notAfter, signature));
94
94
  }
95
- /** Decode a cited-head list, refusing one longer than a node will accept. */
96
- function citedHeads(heads, label) {
95
+ /**
96
+ * Decode a cited-head list, refusing one longer than a node will accept.
97
+ * Shared with `creation-warrant.ts`; internal, not exported from the package root.
98
+ */
99
+ export function citedHeads(heads, label) {
97
100
  const list = heads ?? [];
98
101
  if (list.length > MAX_CITED_HEADS) {
99
102
  throw new Error(`${label} cites ${list.length} heads, over the ${MAX_CITED_HEADS} a node accepts`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calimero-network/mero-js",
3
- "version": "22.2.0",
3
+ "version": "22.4.0",
4
4
  "description": "Pure JavaScript SDK for Calimero",
5
5
  "type": "module",
6
6
  "exports": {