-
Notifications
You must be signed in to change notification settings - Fork 50
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
Merge "SablierV2Linear" and "SablierV2Cliff" #87
Conversation
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.
When contract.create
is used in the test function, that should be createdStream
. When the streamId
from the setUp
function is used in the test function, that should be actualStream
.
test/unit/sablier-v2-linear/create-with-duration/createWithDuration.t.sol
Outdated
Show resolved
Hide resolved
test/unit/sablier-v2-linear/create-with-duration/createWithDuration.t.sol
Show resolved
Hide resolved
IssueThe actual Gas cost
|
I see where you're coming from, but I suggest sticking with |
This is why I suggested to you to reference the commit that you had used for generating the gas table. The best way to ascertain if the gas costs really increased is to reapply the changes made in this PR on top of that commit specifically - but of course this would be a hassle so not worth it to do. There's a host of reasons for why the gas cost may have increased in the meantime - we may have added more tests, or we may have increased the complexity of the tests, or the REVM might have changes some of its operational gas costs. I wouldn't dwell on this. There's a lot of benefits in merging the two contracts. |
I haven't checked anything, but I am pretty sure it's about the complexity of the tests. |
test: delete stale custom errors
test: rename actualStream to createdStream test: swap order of expected + actual/created args
4da6791
to
2bb526c
Compare
Merges the two contracts by keeping the
SablierV2Linear
nomenclature.Closes #86.
Depends upon #75, #78, #79, #82 and #83 being merged first.