Skip to content
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

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

Stebalien
Copy link
Member

@Stebalien
Copy link
Member Author

We need to merge the parent PR first and will have to do a "breaking change" dance regardless.

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)?)
Copy link
Member Author

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.

@Stebalien Stebalien marked this pull request as ready for review August 11, 2023 21:37
Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Stebalien Stebalien merged commit aead6bc into fvm-next Sep 21, 2023
1 of 12 checks passed
@Stebalien Stebalien deleted the steb/remove-beneficiary branch September 21, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants