polkadot-cli 1.15.0 → 1.15.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/cli.mjs +9 -3
- package/package.json +2 -1
package/dist/cli.mjs
CHANGED
|
@@ -1251,7 +1251,10 @@ function normalizeValue(lookup, entry, value) {
|
|
|
1251
1251
|
innerResolved = innerResolved.value;
|
|
1252
1252
|
}
|
|
1253
1253
|
if (innerResolved.type === "primitive" && innerResolved.value === "u8" && typeof value === "string") {
|
|
1254
|
-
|
|
1254
|
+
const isHex = /^0x[0-9a-fA-F]*$/.test(value);
|
|
1255
|
+
if (resolved.type === "array" && isHex)
|
|
1256
|
+
return value;
|
|
1257
|
+
if (isHex)
|
|
1255
1258
|
return Binary2.fromHex(value);
|
|
1256
1259
|
return Binary2.fromText(value);
|
|
1257
1260
|
}
|
|
@@ -2581,7 +2584,7 @@ var init_complete = __esm(() => {
|
|
|
2581
2584
|
// src/cli.ts
|
|
2582
2585
|
import cac from "cac";
|
|
2583
2586
|
// package.json
|
|
2584
|
-
var version = "1.15.
|
|
2587
|
+
var version = "1.15.1";
|
|
2585
2588
|
|
|
2586
2589
|
// src/commands/account.ts
|
|
2587
2590
|
init_accounts_store();
|
|
@@ -6342,7 +6345,10 @@ function normalizeValue2(lookup, entry, value) {
|
|
|
6342
6345
|
innerResolved = innerResolved.value;
|
|
6343
6346
|
}
|
|
6344
6347
|
if (innerResolved.type === "primitive" && innerResolved.value === "u8" && typeof value === "string") {
|
|
6345
|
-
|
|
6348
|
+
const isHex = /^0x[0-9a-fA-F]*$/.test(value);
|
|
6349
|
+
if (resolved.type === "array" && isHex)
|
|
6350
|
+
return value;
|
|
6351
|
+
if (isHex)
|
|
6346
6352
|
return Binary3.fromHex(value);
|
|
6347
6353
|
return Binary3.fromText(value);
|
|
6348
6354
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polkadot-cli",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "CLI tool for querying Polkadot-ecosystem on-chain state",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@biomejs/biome": "^2.4.5",
|
|
54
54
|
"@changesets/cli": "^2.29.4",
|
|
55
|
+
"@polkadot-api/metadata-compatibility": "^0.6.1",
|
|
55
56
|
"@types/bun": "^1.3.9",
|
|
56
57
|
"husky": "^9.1.7"
|
|
57
58
|
}
|