From b440d7e321793e0b053d3b467934a45f880863e0 Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 13 Jan 2015 18:12:19 +0100 Subject: Specify value for contract creation. --- Types.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Types.cpp') 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(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; -- cgit