Remove the beneficiary from "self destruct" #524
Stebalien
started this conversation in
Enhancements - Technical
Replies: 2 comments
-
I'm down with the simplicity of burning. I'm not sure rejecting can always work. E.g. an entry point actor that needs to pay its own gas? It'll probably have some refund amount that needs to be burnt, at least. We could change the parameter to be a boolean whether to burn funds or fail if non-zero balance. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the
self_destruct
syscall transfers funds to some designated beneficiary before deleting the actor. However:self_destruct
(could lead to re-entrency into a "zombie" actor).Proposal
Remove the beneficiary from
self_destruct
. Instead, passing a flag indicating if the remaining funds should be burnt or if the operation should fail if there are any remaining funds.Alternatives
self_destruct
.Draft: #815
Beta Was this translation helpful? Give feedback.
All reactions