Merge pull request #5030 from ethereum/payableConversion

Make non-payable default for conversion to address.
This commit is contained in:
chriseth
2018-09-20 21:20:46 +02:00
committed by GitHub
8 changed files with 43 additions and 5 deletions
+2 -2
View File
@@ -2641,8 +2641,8 @@ bool FunctionType::operator==(Type const& _other) const
bool FunctionType::isExplicitlyConvertibleTo(Type const& _convertTo) const
{
if (m_kind == Kind::External && _convertTo.category() == Category::Address)
return true;
if (m_kind == Kind::External && _convertTo == AddressType::address())
return true;
return _convertTo.category() == category();
}