-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add e2e plugin test for chainfee #273
Conversation
destChain: newNativePrice, | ||
sourceChain1: newNativePrice, | ||
sourceChain2: newNativePrice, |
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.
The assertions would be a lot easier to read if the parameter was these prices rather than the prices and all the expectations
commit/plugin_e2e_test.go
Outdated
n := setupNode(params, oracleIDs[i]) | ||
nodes[i] = n.node | ||
|
||
prepareCcipReaderMock( |
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.
I guess you could add the fee components as arguments to this function
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.
the fee components are on a different reader, but i added a function for those
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.
This looks about right, but I'm not familiar enough with the chainfee logic to tell if you missed anything.
Left a couple suggestions that would help clarify the tests. It would also be helpful to leave a few extra comments for each test that explain why the inputs result in the expected outcome.
|
https://smartcontract-it.atlassian.net/browse/CCIP-3984