We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59fde94 commit 597a81aCopy full SHA for 597a81a
tests/calc-start-end-epoch.js
@@ -9,10 +9,11 @@ function check2024Aug1() {
9
let currentBlockMs = Date.parse(currentBlockTime);
10
11
let cycleCount = 2;
12
- let estimates = DashGov.estimateProposalCycles(cycleCount, {
+ let snapshot = {
13
ms: currentBlockMs,
14
block: currentBlockHeight,
15
- });
+ };
16
+ let estimates = DashGov.estimateProposalCycles(cycleCount, snapshot);
17
18
if (!estimates.last?.voteDeltaMs) {
19
throw new Error(`missing 'estimates.last'`);
0 commit comments