| 3610 | } |
| 3611 | |
| 3612 | bool FunctionType::equalExcludingStateMutability(FunctionType const& _other) const |
| 3613 | { |
| 3614 | if (m_kind != _other.m_kind) |
| 3615 | return false; |
| 3616 | |
| 3617 | if (!hasEqualParameterTypes(_other) || !hasEqualReturnTypes(_other)) |
| 3618 | return false; |
| 3619 | |
| 3620 | //@todo this is ugly, but cannot be prevented right now |
| 3621 | if (gasSet() != _other.gasSet() || valueSet() != _other.valueSet() || saltSet() != _other.saltSet()) |
| 3622 | return false; |
| 3623 | |
| 3624 | if (hasBoundFirstArgument() != _other.hasBoundFirstArgument()) |
| 3625 | return false; |
| 3626 | |
| 3627 | solAssert(!hasBoundFirstArgument() || *selfType() == *_other.selfType(), ""); |
| 3628 | |
| 3629 | return true; |
| 3630 | } |
| 3631 | |
| 3632 | bool FunctionType::isBareCall() const |
| 3633 | { |
no test coverage detected