@indigo-labs/indigo-sdk 0.2.21 → 0.2.22
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/contracts/gov/transactions.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3563,7 +3563,7 @@ async function vote(voteOption, pollShardOref, stakingPositionOref, sysParams, l
|
|
|
3563
3563
|
stakingPosUtxo.assets,
|
|
3564
3564
|
fromSystemParamsAsset(sysParams.govParams.indyAsset)
|
|
3565
3565
|
);
|
|
3566
|
-
const validityFrom = Number(currentTime) - ONE_SECOND;
|
|
3566
|
+
const validityFrom = Number(currentTime) - Math.min(120 * ONE_SECOND, Number(sysParams.govParams.gBiasTime));
|
|
3567
3567
|
if (stakingPosDatum.lockedAmount.has(pollShardDatum.pollId)) {
|
|
3568
3568
|
throw new Error("Already voted for that proposal.");
|
|
3569
3569
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3357,7 +3357,7 @@ async function vote(voteOption, pollShardOref, stakingPositionOref, sysParams, l
|
|
|
3357
3357
|
stakingPosUtxo.assets,
|
|
3358
3358
|
fromSystemParamsAsset(sysParams.govParams.indyAsset)
|
|
3359
3359
|
);
|
|
3360
|
-
const validityFrom = Number(currentTime) - ONE_SECOND;
|
|
3360
|
+
const validityFrom = Number(currentTime) - Math.min(120 * ONE_SECOND, Number(sysParams.govParams.gBiasTime));
|
|
3361
3361
|
if (stakingPosDatum.lockedAmount.has(pollShardDatum.pollId)) {
|
|
3362
3362
|
throw new Error("Already voted for that proposal.");
|
|
3363
3363
|
}
|
package/package.json
CHANGED
|
@@ -446,7 +446,7 @@ export async function vote(
|
|
|
446
446
|
fromSystemParamsAsset(sysParams.govParams.indyAsset),
|
|
447
447
|
);
|
|
448
448
|
|
|
449
|
-
const validityFrom = Number(currentTime) - ONE_SECOND;
|
|
449
|
+
const validityFrom = Number(currentTime) - Math.min(120 * ONE_SECOND, Number(sysParams.govParams.gBiasTime));
|
|
450
450
|
|
|
451
451
|
if (stakingPosDatum.lockedAmount.has(pollShardDatum.pollId)) {
|
|
452
452
|
throw new Error('Already voted for that proposal.');
|