aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 59b8c31b..ea2da0b6 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -631,6 +631,7 @@ MemberList const& FunctionType::getMembers() const
switch (m_location)
{
case Location::EXTERNAL:
+ case Location::CREATION:
case Location::ECRECOVER:
case Location::SHA256:
case Location::RIPEMD160:
@@ -644,6 +645,8 @@ MemberList const& FunctionType::getMembers() const
{"value", make_shared<FunctionType>(parseElementaryTypeVector({"uint"}),
TypePointers{copyAndSetGasOrValue(false, true)},
Location::SET_VALUE, m_gasSet, m_valueSet)}};
+ if (m_location == Location::CREATION)
+ members.erase("gas");
m_members.reset(new MemberList(members));
}
return *m_members;