mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
two more tests
style fixes
This commit is contained in:
parent
8f747aab0f
commit
b1ca27ea93
2
AST.cpp
2
AST.cpp
@ -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."));
|
||||
|
Loading…
Reference in New Issue
Block a user