Skip to content

Commit

Permalink
chore: miner: fix comment in light of FIP-0029 (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored and geoff-vball committed Dec 2, 2022
1 parent fed0e09 commit d3b5b80
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 @@ -3204,8 +3204,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 d3b5b80

Please sign in to comment.