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

Refactor "cancelAll", "withdrawAll" and "withdrawAllTo" #71

Merged
merged 3 commits into from
Jun 19, 2022

Conversation

PaulRBerg
Copy link
Member

Addresses:

And in addition:

  • chore: improve wording and fix typos in comments
  • docs: fix typos in NatSpec comments
  • refactor: "cancelAll" function to not revert when some streams are not cancelable
  • refactor: inherit "getRecipient", "getSender" and "isCancelable" in the "SablierV2" abstract contract"
  • test: combine the "cancel the stream" and "delete the stream" branches
  • test: combine the "make the withdrawal" and "update the withdrawn amounts" branches
  • test: improve wording in comments, descriptors and test trees
  • test: rewrite "cancelAll", "withdrawAll" and "withdrawAllTo" tests
  • test: test for just "WITHDRAW_AMOUNT" instead of "stream.withdrawnAmount + WITHDRAW_AMOUNT"

Depends upon #65 and #68 being merged first.

chore: improve wording and fix typos in comments
docs: fix typos in NatSpec comments
refactor: "cancelAll" function to not revert when some streams are not
cancelable
refactor: inherit "getRecipient", "getSender" and "isCancelable" in
"SablierV2" abstract contract"
test: combine the "cancel the stream" and "delete the stream" branches
test: combine the "make the withdrawal" and "update the withdrawn
amounts" branches
test: improve wording in comments, descriptors and test trees
test: rewrite "cancelAll", "withdrawAll" and "withdrawAllTo" tests
test: test for just "WITHDRAW_AMOUNT" instead of "stream.withdrawnAmount + WITHDRAW_AMOUNT"
@PaulRBerg PaulRBerg force-pushed the refactor/all-functions branch from e09d57a to 06d4d60 Compare June 18, 2022 18:08
test: fix typo in descriptor for "testWithdraw__StreamEnded" function
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.

2 participants