aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-28 23:31:26 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-28 23:37:45 +0800
commitc7cb00d49a1ed17434f836c5b44cd1d38c4a735f (patch)
tree2d358a2584839c548830b87f0195139d9e74b586 /libsolidity
parentab06346e6ec645ed3ec709aa18169633207a1c02 (diff)
downloaddexon-solidity-c7cb00d49a1ed17434f836c5b44cd1d38c4a735f.tar.gz
dexon-solidity-c7cb00d49a1ed17434f836c5b44cd1d38c4a735f.tar.zst
dexon-solidity-c7cb00d49a1ed17434f836c5b44cd1d38c4a735f.zip
Mark event non-payable and not view
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 5e61cdee..65b09840 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -2030,7 +2030,9 @@ FunctionType::FunctionType(FunctionDefinition const& _function, bool _isInternal
}
FunctionType::FunctionType(VariableDeclaration const& _varDecl):
- m_kind(Kind::External), m_stateMutability(StateMutability::View), m_declaration(&_varDecl)
+ m_kind(Kind::External),
+ m_stateMutability(StateMutability::View),
+ m_declaration(&_varDecl)
{
TypePointers paramTypes;
vector<string> paramNames;
@@ -2090,7 +2092,9 @@ FunctionType::FunctionType(VariableDeclaration const& _varDecl):
}
FunctionType::FunctionType(EventDefinition const& _event):
- m_kind(Kind::Event), m_stateMutability(StateMutability::View), m_declaration(&_event)
+ m_kind(Kind::Event),
+ m_stateMutability(StateMutability::NonPayable),
+ m_declaration(&_event)
{
TypePointers params;
vector<string> paramNames;