Skip to content

fix(lockup): add test of unlocking schedule with termination#188

Closed
telezhnaya wants to merge 1 commit into
masterfrom
olya/test_lockup_termination
Closed

fix(lockup): add test of unlocking schedule with termination#188
telezhnaya wants to merge 1 commit into
masterfrom
olya/test_lockup_termination

Conversation

@telezhnaya

Copy link
Copy Markdown
Contributor

Closes #187

I also need to rebuild the binary again; I'll do that after we review the test.

I decided to check all that we wanted on one contract instead of 2, it looks simpler for me and it checks the same stuff.

@telezhnaya

Copy link
Copy Markdown
Contributor Author

I guess it's better to mention the doc in the comments
https://wiki.near.org/getting-started/near-token/lockups#termination-of-vesting
It could be useful for the reader to understand the logic better

@frol frol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@telezhnaya I find this test to be quite hard to follow due to "magical consts"

Comment thread lockup/src/lib.rs
Comment thread lockup/src/lib.rs
Comment thread lockup/src/lib.rs
Comment thread lockup/src/lib.rs
Comment thread lockup/src/lib.rs
Comment thread lockup/src/lib.rs
@ilblackdragon

Copy link
Copy Markdown
Member

Standard wise, it will be test(lockup) if there is no actual fix in the PR but only tests added.

@telezhnaya

Copy link
Copy Markdown
Contributor Author

Addressed all the review comments in #191

@telezhnaya telezhnaya closed this Dec 9, 2021
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.

Add test in lockup contract about termination process

3 participants