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
To prevent buggy or malicious contract behavior from propagating invalid states across the network, we should enforce a design where validate_state() is always called after update_state(). This will ensure that the state remains valid after a delta is applied, without relying on redundant validation inside the update_state() function itself. We should remove the validate_delta() function (if present) and explicitly discourage performing state validation within update_state(), as validate_state() will handle this post-update validation.
The text was updated successfully, but these errors were encountered:
To prevent buggy or malicious contract behavior from propagating invalid states across the network, we should enforce a design where
validate_state()
is always called afterupdate_state()
. This will ensure that the state remains valid after a delta is applied, without relying on redundant validation inside theupdate_state()
function itself. We should remove thevalidate_delta()
function (if present) and explicitly discourage performing state validation withinupdate_state()
, asvalidate_state()
will handle this post-update validation.The text was updated successfully, but these errors were encountered: