two more tests

style fixes
This commit is contained in:
Liana Husikyan 2015-03-26 14:11:24 +01:00
parent 8f747aab0f
commit b1ca27ea93
2 changed files with 2 additions and 2 deletions

View File

@ -431,7 +431,7 @@ void EventDefinition::checkTypeRequirements()
if (!var->getType()->canLiveOutsideStorage())
BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage."));
if (!var->getType()->externalType())
BOOST_THROW_EXCEPTION(var->createTypeError("Internal type is not allowed for Events"));
BOOST_THROW_EXCEPTION(var->createTypeError("Internal type is not allowed as event parameter type."));
}
if (numIndexed > 3)
BOOST_THROW_EXCEPTION(createTypeError("More than 3 indexed arguments for event."));

2
AST.h
View File

@ -422,7 +422,7 @@ public:
void checkTypeRequirements();
/// @returns the external signature of the function
/// That consists of the name of the function followed by the types(external types if isExternalCall) of the
/// That consists of the name of the function followed by the types (external types if isExternalCall) of the
/// arguments separated by commas all enclosed in parentheses without any spaces.
std::string externalSignature(bool isExternalCall = false) const;