Commit 126609e
authored
fix: get delay for advancing time from the proposal instead of constant (#495)
This pull request updates how the time delay for advancing the
blockchain is determined in the Chainlink deployments framework. Instead
of using a hardcoded constant, the delay is now dynamically retrieved
from the proposal configuration, improving flexibility and accuracy.
**Improvements to time advancement logic:**
* The default constant `defaultAdvanceTime` was removed from
`mcms_v2.go`, so time advancement no longer relies on a fixed value.
* The code now uses the delay specified in `cfg.timelockProposal.Delay`
when calling `anvilClient.EVMIncreaseTime`, ensuring the time
advancement matches the proposal's requirements.
**Documentation update:**
* The `.changeset/pretty-days-draw.md` file documents this change,
noting that the delay for advancing time is now obtained from the
proposal rather than a constant value.1 parent ce51cbe commit 126609e
File tree
2 files changed
+7
-2
lines changed- .changeset
- engine/cld/legacy/cli/mcmsv2
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
666 | 665 | | |
667 | 666 | | |
668 | 667 | | |
669 | | - | |
| 668 | + | |
| 669 | + | |
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| |||
0 commit comments