@acala-network/chopsticks-core 0.9.5 → 0.9.6-2
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.
|
@@ -38,10 +38,10 @@ function objectToStorageItems(meta, storage) {
|
|
|
38
38
|
const key = new _types.StorageKey(meta.registry, [
|
|
39
39
|
storageEntry
|
|
40
40
|
]);
|
|
41
|
-
if (
|
|
41
|
+
if (typeof storage === 'string' && storage.startsWith('0x')) {
|
|
42
42
|
storageItems.push([
|
|
43
43
|
key.toHex(),
|
|
44
|
-
|
|
44
|
+
storage
|
|
45
45
|
]);
|
|
46
46
|
} else {
|
|
47
47
|
storageItems.push([
|
|
@@ -55,10 +55,10 @@ function objectToStorageItems(meta, storage) {
|
|
|
55
55
|
storageEntry,
|
|
56
56
|
keys
|
|
57
57
|
]);
|
|
58
|
-
if (
|
|
58
|
+
if (typeof value === 'string' && value.startsWith('0x')) {
|
|
59
59
|
storageItems.push([
|
|
60
60
|
key.toHex(),
|
|
61
|
-
|
|
61
|
+
value
|
|
62
62
|
]);
|
|
63
63
|
} else {
|
|
64
64
|
storageItems.push([
|
|
@@ -28,10 +28,10 @@ function objectToStorageItems(meta, storage) {
|
|
|
28
28
|
const key = new StorageKey(meta.registry, [
|
|
29
29
|
storageEntry
|
|
30
30
|
]);
|
|
31
|
-
if (
|
|
31
|
+
if (typeof storage === 'string' && storage.startsWith('0x')) {
|
|
32
32
|
storageItems.push([
|
|
33
33
|
key.toHex(),
|
|
34
|
-
|
|
34
|
+
storage
|
|
35
35
|
]);
|
|
36
36
|
} else {
|
|
37
37
|
storageItems.push([
|
|
@@ -45,10 +45,10 @@ function objectToStorageItems(meta, storage) {
|
|
|
45
45
|
storageEntry,
|
|
46
46
|
keys
|
|
47
47
|
]);
|
|
48
|
-
if (
|
|
48
|
+
if (typeof value === 'string' && value.startsWith('0x')) {
|
|
49
49
|
storageItems.push([
|
|
50
50
|
key.toHex(),
|
|
51
|
-
|
|
51
|
+
value
|
|
52
52
|
]);
|
|
53
53
|
} else {
|
|
54
54
|
storageItems.push([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6-2",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"docs:prep": "typedoc"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@acala-network/chopsticks-executor": "0.9.
|
|
15
|
+
"@acala-network/chopsticks-executor": "0.9.6-2",
|
|
16
16
|
"@polkadot/rpc-provider": "^10.10.1",
|
|
17
17
|
"@polkadot/types": "^10.10.1",
|
|
18
18
|
"@polkadot/types-codec": "^10.10.1",
|