vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.84k stars 788 forks source link

Incomplete Error Message #4085

Open ritzdorf opened 4 months ago

ritzdorf commented 4 months ago

Version Information

The following error message in HashMapT.from_annotation() is unclear as Bytes array and String can also be used as key types of HashMaps.

if not key_type._as_hashmap_key:
    raise InvalidType("can only use primitive types as HashMap key!", k_ast)