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

Don't observe destChain fee #392

Merged
merged 6 commits into from
Dec 19, 2024
Merged

Don't observe destChain fee #392

merged 6 commits into from
Dec 19, 2024

Conversation

asoliman92
Copy link
Contributor

@asoliman92 asoliman92 commented Dec 19, 2024

  • Don't observe destChain fee
  • Fix test setup

0xnogo
0xnogo previously approved these changes Dec 19, 2024
@@ -87,7 +87,7 @@ func (c ccipChainSupport) SupportedChains(oracleID commontypes.OracleID) (mapset
return mapset.NewSet[cciptypes.ChainSelector](), fmt.Errorf("error getting supported chains: %w", err)
}

return supportedChains, nil
return supportedChains.Clone(), nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Return a clone from supported chains. Otherwise any operations on the returned set will affect the original set

@@ -438,11 +438,11 @@ func TestPlugin_E2E_AllNodesAgree_ChainFee(t *testing.T) {
nodes := make([]ocr3types.ReportingPlugin[[]byte], len(oracleIDs))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing the tests to simulate real results as we shouldn't expect fees for the destChain itself.

Copy link

Metric dont-observe-dest-chain-fee main
Coverage 76.9% 76.8%

@asoliman92 asoliman92 merged commit 67e180e into main Dec 19, 2024
17 checks passed
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