Skip to content

Commit

Permalink
chore: miner: fix comment in light of FIP-0029 (filecoin-project#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek authored and shamb0 committed Jan 31, 2023
1 parent 180f2a5 commit cc96faa
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 cc96faa

Please sign in to comment.