Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CCIP-4948: Adding new test for disable and enable lane #16038

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

b-gopalswami
Copy link
Contributor

@b-gopalswami b-gopalswami commented Jan 22, 2025

Adding test to verify the op changeset workflow to disable and re-enable the lane.

Tests it will cover: TC001 & TC002
https://smartcontract-it.atlassian.net/wiki/spaces/QA/pages/1262846210/CCIP+V1.6+Changeset+Test+Plan

@@ -705,12 +705,10 @@ func UpdateOffRampSourcesChangeset(e deployment.Environment, cfg UpdateOffRampSo
var args []offramp.OffRampSourceChainConfigArgs
for source, update := range updates {
router := common.HexToAddress("0x0")
if update.IsEnabled {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

router can't be 0x0 address as Offramp expects valid router address ow it will throw ZeroAddressNotAllowed error message.

revert ZeroAddressNotAllowed();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not possible to disable a router in offRamp, the parameter IsEnabled should be removed

@b-gopalswami b-gopalswami marked this pull request as ready for review January 23, 2025 13:58
@b-gopalswami b-gopalswami requested review from a team as code owners January 23, 2025 13:58
makramkd
makramkd previously approved these changes Jan 23, 2025
Copy link
Contributor

github-actions bot commented Jan 24, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

fix newline
@@ -482,6 +482,45 @@ func AddLane(
require.NoError(t, err)
}

func UpdateLane(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment please

@@ -705,12 +705,10 @@ func UpdateOffRampSourcesChangeset(e deployment.Environment, cfg UpdateOffRampSo
var args []offramp.OffRampSourceChainConfigArgs
for source, update := range updates {
router := common.HexToAddress("0x0")
if update.IsEnabled {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's not possible to disable a router in offRamp, the parameter IsEnabled should be removed

) {
var err error
var apps []commoncs.ChangesetApplication
apps = append(apps, commoncs.ChangesetApplication{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To disable a lane, I think we need to disable the router to ramp connection, otherwise router will still route the requests to ramps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants