Introduce view (and keep constant as an alias)

This commit is contained in:
Alex Beregszaszi
2017-08-22 18:24:22 +01:00
parent 210b4870a8
commit efe4d68a7b
8 changed files with 13 additions and 9 deletions
-1
View File
@@ -993,7 +993,6 @@ public:
return *m_declaration;
}
bool hasDeclaration() const { return !!m_declaration; }
bool isConstant() const { return m_stateMutability == StateMutability::View; }
/// @returns true if the the result of this function only depends on its arguments
/// and it does not modify the state.
/// Currently, this will only return true for internal functions like keccak and ecrecover.