Merge pull request #14347 from ethereum/fixTypeCheckingAbiDecode

Disallow the use of `TypeType` in complex expressions
This commit is contained in:
Nikola Matić
2023-07-18 18:14:45 +02:00
committed by GitHub
23 changed files with 204 additions and 1 deletions
+1
View File
@@ -1598,6 +1598,7 @@ public:
bool hasSimpleZeroValueInMemory() const override { solAssert(false, ""); }
std::string toString(bool _withoutDataLocation) const override { return "type(" + m_actualType->toString(_withoutDataLocation) + ")"; }
MemberList::MemberMap nativeMembers(ASTNode const* _currentScope) const override;
Type const* mobileType() const override { return nullptr; }
BoolResult isExplicitlyConvertibleTo(Type const& _convertTo) const override;
protected: