Merge pull request #8630 from ethereum/encoding-bug-functionCallOption

TypeChecker error when encoding functions with call options; tests
This commit is contained in:
chriseth
2020-04-08 16:33:24 +02:00
committed by GitHub
4 changed files with 17 additions and 4 deletions
+2
View File
@@ -3112,6 +3112,8 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const* _sco
TypePointer FunctionType::encodingType() const
{
if (m_gasSet || m_valueSet)
return nullptr;
// Only external functions can be encoded, internal functions cannot leave code boundaries.
if (m_kind == Kind::External)
return this;