@talismn/sapi 0.0.0-pr2165-20250922020656 → 0.0.0-pr2174-20250922030631

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.
@@ -340,18 +340,16 @@ const getPayloadWithMetadataHash = (chain, chainInfo, payload) => {
340
340
  specName,
341
341
  specVersion
342
342
  } = chainInfo;
343
- const metadataHashInputs = {
343
+
344
+ // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
345
+ const merkleizedMetadata = merkleizeMetadata.merkleizeMetadata(chain.hexMetadata, {
344
346
  tokenSymbol,
345
347
  decimals,
346
348
  base58Prefix,
347
349
  specName,
348
350
  specVersion
349
- };
350
-
351
- // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
352
- const merkleizedMetadata = merkleizeMetadata.merkleizeMetadata(chain.hexMetadata, metadataHashInputs);
351
+ });
353
352
  const metadataHash = utils.toHex(merkleizedMetadata.digest());
354
- log.log("metadataHash", metadataHash, metadataHashInputs);
355
353
  const payloadWithMetadataHash = {
356
354
  ...payload,
357
355
  mode: 1,
@@ -340,18 +340,16 @@ const getPayloadWithMetadataHash = (chain, chainInfo, payload) => {
340
340
  specName,
341
341
  specVersion
342
342
  } = chainInfo;
343
- const metadataHashInputs = {
343
+
344
+ // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
345
+ const merkleizedMetadata = merkleizeMetadata.merkleizeMetadata(chain.hexMetadata, {
344
346
  tokenSymbol,
345
347
  decimals,
346
348
  base58Prefix,
347
349
  specName,
348
350
  specVersion
349
- };
350
-
351
- // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
352
- const merkleizedMetadata = merkleizeMetadata.merkleizeMetadata(chain.hexMetadata, metadataHashInputs);
351
+ });
353
352
  const metadataHash = utils.toHex(merkleizedMetadata.digest());
354
- log.log("metadataHash", metadataHash, metadataHashInputs);
355
353
  const payloadWithMetadataHash = {
356
354
  ...payload,
357
355
  mode: 1,
@@ -334,18 +334,16 @@ const getPayloadWithMetadataHash = (chain, chainInfo, payload) => {
334
334
  specName,
335
335
  specVersion
336
336
  } = chainInfo;
337
- const metadataHashInputs = {
337
+
338
+ // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
339
+ const merkleizedMetadata = merkleizeMetadata(chain.hexMetadata, {
338
340
  tokenSymbol,
339
341
  decimals,
340
342
  base58Prefix,
341
343
  specName,
342
344
  specVersion
343
- };
344
-
345
- // since ultimately this needs a V15 object, would be nice if this accepted one directly as input
346
- const merkleizedMetadata = merkleizeMetadata(chain.hexMetadata, metadataHashInputs);
345
+ });
347
346
  const metadataHash = toHex(merkleizedMetadata.digest());
348
- log.log("metadataHash", metadataHash, metadataHashInputs);
349
347
  const payloadWithMetadataHash = {
350
348
  ...payload,
351
349
  mode: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/sapi",
3
- "version": "0.0.0-pr2165-20250922020656",
3
+ "version": "0.0.0-pr2174-20250922030631",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -31,7 +31,7 @@
31
31
  "anylogger": "^1.0.11",
32
32
  "polkadot-api": "1.13.1",
33
33
  "scale-ts": "^1.6.1",
34
- "@talismn/scale": "0.0.0-pr2165-20250922020656"
34
+ "@talismn/scale": "0.0.0-pr2174-20250922030631"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/jest": "^29.5.14",