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
Because when auditing contracts it can sometimes be hard to tell if the contract author just forgot to put a piece of code in some of match-statements and this change would make this explicit.
For example, the following
match is_valid with
| True =>
| False =>
error = FooError;
Throw error
end
would be replaced with
match is_valid with
| True =>
do_nothing (* or `nop` or whatever syntax we choose *)
| False =>
error = FooError;
Throw error
end
The text was updated successfully, but these errors were encountered:
Because when auditing contracts it can sometimes be hard to tell if the contract author just forgot to put a piece of code in some of
match
-statements and this change would make this explicit.For example, the following
would be replaced with
The text was updated successfully, but these errors were encountered: