Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Dec 19, 2024
1 parent 954f5b3 commit 40023a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deployment/ccip/changeset/cs_ccip_home.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ func (p PromoteAllCandidatesChangesetConfig) Validate(e deployment.Environment)
}

var donIDs []uint32
for _, selector := range p.RemoteChainSelectors {
if err := deployment.IsValidChainSelector(selector); err != nil {
for _, chainSelector := range p.RemoteChainSelectors {
if err := deployment.IsValidChainSelector(chainSelector); err != nil {
return nil, fmt.Errorf("don chain selector invalid: %w", err)
}
chainState, exists := state.Chains[selector]
chainState, exists := state.Chains[chainSelector]
if !exists {
return nil, fmt.Errorf("chain %d does not exist", selector)
return nil, fmt.Errorf("chain %d does not exist", chainSelector)
}
if chainState.OffRamp == nil {
// should not be possible, but a defensive check.
Expand All @@ -159,13 +159,13 @@ func (p PromoteAllCandidatesChangesetConfig) Validate(e deployment.Environment)
donID, err := internal.DonIDForChain(
state.Chains[p.HomeChainSelector].CapabilityRegistry,
state.Chains[p.HomeChainSelector].CCIPHome,
selector,
chainSelector,
)
if err != nil {
return nil, fmt.Errorf("fetch don id for chain: %w", err)
}
if donID == 0 {
return nil, fmt.Errorf("don doesn't exist in CR for chain %d", selector)
return nil, fmt.Errorf("don doesn't exist in CR for chain %d", chainSelector)
}
// Check that candidate digest and active digest are not both zero - this is enforced onchain.
pluginConfigs, err := state.Chains[p.HomeChainSelector].CCIPHome.GetAllConfigs(&bind.CallOpts{
Expand Down

0 comments on commit 40023a3

Please sign in to comment.