Skip to content

Commit

Permalink
chore: miner: fix comment in light of FIP-0029
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored Sep 14, 2022
1 parent fe531cb commit 930aeb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions actors/miner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3254,8 +3254,7 @@ impl Actor {
rt.transaction(|state: &mut State, rt| {
let mut info = get_miner_info(rt.store(), state)?;

// Only the owner is allowed to withdraw the balance as it belongs to/is controlled by the owner
// and not the worker.
// Only the owner or the beneficiary is allowed to withdraw the balance.
rt.validate_immediate_caller_is(&[info.owner, info.beneficiary])?;

// Ensure we don't have any pending terminations.
Expand Down

0 comments on commit 930aeb9

Please sign in to comment.