You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you "delete" a mapping entry, you really just reset it to default values. Therefore a good solution would be an easier way to reset an entire struct (or other mapping member) to the default values for it's type signature using the standard syntax in Python:
Is there any way to delete a mapping?
For example I have the next struct:
test: public({
some_map: num256[bytes32],
variable: num
}[num])
In Solidity there is
delete test[id];
I saw the solutions like
test[id].variable = 0
But how to clean a mapping inside a mapping?
The text was updated successfully, but these errors were encountered: