@acala-network/chopsticks-core 0.10.0-2 → 0.10.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.
|
@@ -88,8 +88,8 @@ class SetValidationData {
|
|
|
88
88
|
const hrmpIngressChannelIndexKey = (0, _proof.hrmpIngressChannelIndex)(paraId);
|
|
89
89
|
const hrmpEgressChannelIndexKey = (0, _proof.hrmpEgressChannelIndex)(paraId);
|
|
90
90
|
const decoded = await (0, _index1.decodeProof)(extrinsic.validationData.relayParentStorageRoot, extrinsic.relayChainState.trieNodes);
|
|
91
|
-
const slotIncrease = meta.consts.timestamp.minimumPeriod.divn(3000) // relaychain min period
|
|
92
|
-
.toNumber();
|
|
91
|
+
const slotIncrease = Math.max(1, meta.consts.timestamp.minimumPeriod.divn(3000) // relaychain min period
|
|
92
|
+
.toNumber());
|
|
93
93
|
for (const key of Object.values(_proof.WELL_KNOWN_KEYS)){
|
|
94
94
|
if (key === _proof.WELL_KNOWN_KEYS.CURRENT_SLOT) {
|
|
95
95
|
// increment current slot
|
|
@@ -73,8 +73,8 @@ export class SetValidationData {
|
|
|
73
73
|
const hrmpIngressChannelIndexKey = hrmpIngressChannelIndex(paraId);
|
|
74
74
|
const hrmpEgressChannelIndexKey = hrmpEgressChannelIndex(paraId);
|
|
75
75
|
const decoded = await decodeProof(extrinsic.validationData.relayParentStorageRoot, extrinsic.relayChainState.trieNodes);
|
|
76
|
-
const slotIncrease = meta.consts.timestamp.minimumPeriod.divn(3000) // relaychain min period
|
|
77
|
-
.toNumber();
|
|
76
|
+
const slotIncrease = Math.max(1, meta.consts.timestamp.minimumPeriod.divn(3000) // relaychain min period
|
|
77
|
+
.toNumber());
|
|
78
78
|
for (const key of Object.values(WELL_KNOWN_KEYS)){
|
|
79
79
|
if (key === WELL_KNOWN_KEYS.CURRENT_SLOT) {
|
|
80
80
|
// increment current slot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks-core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
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.10.
|
|
15
|
+
"@acala-network/chopsticks-executor": "0.10.1",
|
|
16
16
|
"@polkadot/rpc-provider": "^10.11.2",
|
|
17
17
|
"@polkadot/types": "^10.11.2",
|
|
18
18
|
"@polkadot/types-codec": "^10.11.2",
|