Add type().min/max for enums

This commit is contained in:
Marenz
2021-09-01 15:02:02 +02:00
parent 1e334a8993
commit 2b28f87abf
17 changed files with 85 additions and 25 deletions
+3 -2
View File
@@ -566,9 +566,10 @@ MagicType const* TypeProvider::meta(Type const* _type)
solAssert(
_type && (
_type->category() == Type::Category::Contract ||
_type->category() == Type::Category::Integer
_type->category() == Type::Category::Integer ||
_type->category() == Type::Category::Enum
),
"Only contracts or integer types supported for now."
"Only enum, contracts or integer types supported for now."
);
return createAndGet<MagicType>(_type);
}