MCPcopy Create free account
hub / github.com/argotorg/solidity / equalExcludingStateMutability

Method equalExcludingStateMutability

libsolidity/ast/Types.cpp:3612–3630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3610}
3611
3612bool 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
3632bool FunctionType::isBareCall() const
3633{

Callers 1

Calls 5

gasSetMethod · 0.80
valueSetMethod · 0.80
saltSetMethod · 0.80
hasBoundFirstArgumentMethod · 0.80
selfTypeMethod · 0.80

Tested by

no test coverage detected