Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
240 stars 78 forks source link

Refactor is_storable_serializable_helper #1054

Closed jjcnn closed 2 years ago

jjcnn commented 2 years ago

The purpose of this refactoring is to add check for legal hash argument types.

We haven't yet settled on which types are actually allowed as hash argument types, but now it's easy to change it. See

Note also that we disallow maps, closures and type closures as procedure arguments, which there isn't actually any need to do. We do have testcases for it, though, so it's probably intentional. Again, with this refactoring it's easy to change if we feel like it.