Is there a way to completely burn/discard an object? #253
-
Discord user IDNo response Describe your question in detail.I want to figure out a way to burn/discard an object so that it's not revertable. What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?There's a Wonder if there's a way to ensure the object is not redeemable by the original owner. Which operating system are you using?macOS Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Answered by
kshitijc1506
Jun 3, 2024
Replies: 1 comment 4 replies
-
Seems this recent PR addresses it |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @0xbe1, this PR ensures that the original owner cannot reclaim an object after a soft burn, but only if
TransferRef
is used before reclaim.^This was originally possible since we didn't remove the
TombStone
struct inobject::transfer_with_ref
.To address your original question, a user can still call
burn
and thenunburn
.If you want to make sure that the object is discarded, you should use the
DeleteRef
. This will remove the object from global storage instead of transferring it to the burn address.