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())
|
if (!var->getType()->canLiveOutsideStorage())
|
||||||
BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage."));
|
BOOST_THROW_EXCEPTION(var->createTypeError("Type is required to live outside storage."));
|
||||||
if (!var->getType()->externalType())
|
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)
|
if (numIndexed > 3)
|
||||||
BOOST_THROW_EXCEPTION(createTypeError("More than 3 indexed arguments for event."));
|
BOOST_THROW_EXCEPTION(createTypeError("More than 3 indexed arguments for event."));
|
||||||
|
2
AST.h
2
AST.h
@ -422,7 +422,7 @@ public:
|
|||||||
void checkTypeRequirements();
|
void checkTypeRequirements();
|
||||||
|
|
||||||
/// @returns the external signature of the function
|
/// @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.
|
/// arguments separated by commas all enclosed in parentheses without any spaces.
|
||||||
std::string externalSignature(bool isExternalCall = false) const;
|
std::string externalSignature(bool isExternalCall = false) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user