-
Notifications
You must be signed in to change notification settings - Fork 79
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
feat: remove beneficiary from self-destruct #1362
Conversation
We need to merge the parent PR first and will have to do a "breaking change" dance regardless. |
8f9a7e8
to
19d2843
Compare
if *self.in_transaction.borrow() { | ||
return Err( | ||
actor_error!(assertion_failed; "delete_actor is not allowed during transaction"), | ||
); | ||
} | ||
Ok(fvm::sself::self_destruct(beneficiary)?) | ||
Ok(fvm::sself::self_destruct(false)?) |
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.
Passing false
here will cause self_destruct
to fail if there are any remaining funds. At the moment, that's the only behavior we want in the builtin actors.
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.
ok
19d2843
to
9e5b136
Compare
part of filecoin-project/ref-fvm#1837