mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some fixes for PR comments
This commit is contained in:
parent
a522aea3c1
commit
de5af35fca
@ -403,12 +403,11 @@ void StructDefinition::insertEip712EncodedSubtypes(std::set<std::string>& subtyp
|
||||
declaration = m_members[i]->type()->typeDefinition();
|
||||
break;
|
||||
case Type::Category::Array:
|
||||
if (auto const* arrayType = dynamic_cast<ArrayType const*>(m_members[i]->type()))
|
||||
{
|
||||
auto const* arrayType = dynamic_cast<ArrayType const*>(m_members[i]->type());
|
||||
solAssert(!!arrayType);
|
||||
if (auto finalyBaseType = dynamic_cast<StructType const*>(arrayType->finalBaseType(false)))
|
||||
if (auto finalBaseType = dynamic_cast<StructType const*>(arrayType->finalBaseType(false)))
|
||||
{
|
||||
declaration = finalyBaseType->typeDefinition();
|
||||
declaration = finalBaseType->typeDefinition();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -357,7 +357,11 @@ public:
|
||||
/// @returns the canonical name of this type for use in library function signatures.
|
||||
virtual std::string canonicalName() const { return toString(true); }
|
||||
virtual std::string humanReadableName() const { return toString(); }
|
||||
virtual std::string eip712TypeName() const { return encodingType()->toString(true); }
|
||||
virtual std::string eip712TypeName() const
|
||||
{
|
||||
solAssert(isEIP712AllowedStructMemberType(), "Invalid type ...");
|
||||
return encodingType()->toString(true);
|
||||
}
|
||||
virtual bool isEIP712AllowedStructMemberType() const { return false; }
|
||||
/// @returns the signature of this type in external functions, i.e. `uint256` for integers
|
||||
/// or `(uint256,bytes8)[2]` for an array of structs. If @a _structsByName,
|
||||
|
Loading…
Reference in New Issue
Block a user