mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3941 from ethereum/bytes-contract
Disallow explicit conversion of bytesXX to contract
This commit is contained in:
@@ -1299,7 +1299,6 @@ bool FixedBytesType::isExplicitlyConvertibleTo(Type const& _convertTo) const
|
||||
{
|
||||
return _convertTo.category() == Category::Integer ||
|
||||
_convertTo.category() == Category::FixedPoint ||
|
||||
_convertTo.category() == Category::Contract ||
|
||||
_convertTo.category() == category();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user