Disallow setting .gas() on .transfer()

This commit is contained in:
Alex Beregszaszi
2017-02-24 00:27:36 +00:00
parent 59514d8268
commit 4d290e551c
3 changed files with 5 additions and 27 deletions
+1 -2
View File
@@ -2315,10 +2315,9 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con
case Location::Bare:
case Location::BareCallCode:
case Location::BareDelegateCall:
case Location::Transfer:
{
MemberList::MemberMap members;
if (m_location != Location::BareDelegateCall && m_location != Location::DelegateCall && m_location != Location::Transfer)
if (m_location != Location::BareDelegateCall && m_location != Location::DelegateCall)
{
if (m_isPayable)
members.push_back(MemberList::Member(