-
Notifications
You must be signed in to change notification settings - Fork 48
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
Remove the deltaCount
check
#99
Comments
There is no need to test this , because we only check if the |
Well that's what I meant. I know that the contract doesn't directly check |
This error This case is tested in the PR |
Description
Implements what has been discussed in #96. In short: remove the check here:
https://github.com/sablierhq/v2-core/blob/5f13c560f6a3c99a10899ffc95907a8bc7414d84/src/SablierV2Pro.sol#L238-L241
Because the
checkSegmentCounts
function will automatically check the count of the segments is less thanMAX_SEGMENT_COUNT
.What to Beware
The createWithDuration.tree tree (and consequently the tests too) will have to be refactored to account for two new testing branches:
2. The case when the count ofsegmentMilestones
is greater thanMAX_SEGMENT_COUNT
.The text was updated successfully, but these errors were encountered: