-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
base: develop
Are you sure you want to change the base?
Conversation
@@ -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 { |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
457f900
to
093222d
Compare
Quality Gate passedIssues Measures |
@@ -482,6 +482,45 @@ func AddLane( | |||
require.NoError(t, err) | |||
} | |||
|
|||
func UpdateLane( |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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{ |
There was a problem hiding this comment.
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
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