-
Notifications
You must be signed in to change notification settings - Fork 407
use structs in testhelper to reduce stack size #92
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
base: main
Are you sure you want to change the base?
Conversation
@@ -64,121 +64,127 @@ contract TestHelper is Test, OptionsHelper { | |||
executorValueCap = _valueCap; | |||
} | |||
|
|||
struct EndpointSetup { |
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.
worth to add natspec comment?
/**
- @dev Structure to manage and store endpoint-related configurations.
- Used for setting up multiple endpoints in testing and deployment.
- @param endpointList Array of deployed endpoint contracts.
- @param eidList List of endpoint identifiers (EIDs).
- @param sendLibs Addresses of sending libraries for each endpoint.
- @param receiveLibs Addresses of receiving libraries for each endpoint.
- @param signers List of signer addresses for verification.
- @param priceFeed Reference to the deployed price feed contract.
*/
PriceFeed priceFeed; | ||
} | ||
|
||
struct LibrarySetup { |
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.
natspec comment
} | ||
|
||
EndpointSetup endpointSetup; | ||
|
||
/** | ||
* @dev setup the endpoints | ||
* @param _endpointNum num of endpoints | ||
*/ | ||
function setUpEndpoints(uint8 _endpointNum, LibraryType _libraryType) public { |
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.
/**
fixes #42