Commit b928c8c
authored
deployment: use timelock qualifier in SetConfigMCMSV2 changeset (#21716)
* deployment: use timelock qualifier in SetConfigMCMSV2 changeset
The SetConfigMCMSV2 changeset was loading MCMS with timelock state using
MaybeLoadMCMSWithTimelockState, which does not support timelock qualifiers.
This meant that when a ProposalConfig specified a TimelockQualifierPerChain,
the qualifier was silently ignored during both validation and execution,
causing the changeset to load the wrong timelock state.
Update both Validate() and SetConfigMCMSV2() to extract the qualifier from
ProposalConfig.TimelockQualifierPerChain and pass it to the new
MaybeLoadMCMSWithTimelockStateWithQualifier function. When ProposalConfig
is nil, the qualifier defaults to an empty string, preserving backward
compatibility.
* deployment: add unit tests for timelock qualifier in SetConfigMCMSV2
Add TestSetConfigMCMSV2WithTimelockQualifier to verify that the
TimelockQualifierPerChain field in ProposalConfig is correctly extracted
and passed to MaybeLoadMCMSWithTimelockStateWithQualifier during
validation.
The test deploys two MCMS instances on the same chain with different
qualifiers (CLLCCIP and RMNMCMS), mirroring the production setup, and
validates four scenarios:
- CLLCCIP qualifier resolves to the correct MCMS deployment
- RMNMCMS qualifier resolves to the correct MCMS deployment
- Empty qualifier fails with "found more than one instance" when
multiple MCMS deployments exist, documenting the problem this
changeset solves
- Non-existent qualifier fails with "no addresses found"1 parent ef4e240 commit b928c8c
2 files changed
Lines changed: 103 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
217 | 225 | | |
218 | 226 | | |
219 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
517 | 610 | | |
518 | 611 | | |
519 | 612 | | |
| |||
0 commit comments