aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTEnums.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/ast/ASTEnums.h')
-rw-r--r--libsolidity/ast/ASTEnums.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTEnums.h b/libsolidity/ast/ASTEnums.h
index f7c75878..5ba21907 100644
--- a/libsolidity/ast/ASTEnums.h
+++ b/libsolidity/ast/ASTEnums.h
@@ -31,12 +31,14 @@ namespace solidity
{
// How a function can mutate the EVM state.
-enum class StateMutability { View, NonPayable, Payable };
+enum class StateMutability { Pure, View, NonPayable, Payable };
inline std::string stateMutabilityToString(StateMutability const& _stateMutability)
{
switch(_stateMutability)
{
+ case StateMutability::Pure:
+ return "pure";
case StateMutability::View:
return "view";
case StateMutability::NonPayable: