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 committed Nov 27, 2022
1 parent 2434867 commit 3bc3065
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 @@ -3094,8 +3094,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 3bc3065

Please sign in to comment.