-
Notifications
You must be signed in to change notification settings - Fork 78
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
Multisig vesting unit tests #295
Conversation
ZenGround0
commented
Apr 29, 2022
•
edited
Loading
edited
- TestVesting
- TestVesting/happy_path_full_vesting
- TestVesting/partial_vesting_propose_to_send_half_the_actor_balance_when_the_epoch_is_half_the_unlock_duration
- TestVesting/propose_and_autoapprove_transaction_above_locked_amount_fails
- TestVesting/fail_to_vest_more_than_locked_amount
- TestVesting/avoid_truncating_division
- TestVesting/sending_zero_ok_when_nothing_vested
- TestVesting/sending_zero_ok_when_lockup_exceeds_balance
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.
lgtm; dont forget the debug leftover prints.
actors/multisig/src/lib.rs
Outdated
@@ -100,6 +100,7 @@ impl Actor { | |||
if params.unlock_duration < 0 { | |||
return Err(actor_error!(illegal_argument; "negative unlock duration disallowed")); | |||
} | |||
println!("unlock duration: {}", params.unlock_duration); |
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.
debug leftover?
actors/multisig/src/lib.rs
Outdated
@@ -196,6 +197,7 @@ impl Actor { | |||
BS: Blockstore, | |||
RT: Runtime<BS>, | |||
{ | |||
println!("rt sees epoch: {}", rt.curr_epoch()); |
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.
here too.
158a88e
to
fde6832
Compare