diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-24 08:27:36 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-24 08:27:36 +0800 |
commit | 4d290e551c2d563671f9d56744883d3f3dff98ec (patch) | |
tree | 9f4a581d0fb76d744a242678bc6dba1c2d5882a9 /libsolidity/ast | |
parent | 59514d8268585f02aa1abb1fdb1b56bcf6e56ef4 (diff) | |
download | dexon-solidity-4d290e551c2d563671f9d56744883d3f3dff98ec.tar.gz dexon-solidity-4d290e551c2d563671f9d56744883d3f3dff98ec.tar.zst dexon-solidity-4d290e551c2d563671f9d56744883d3f3dff98ec.zip |
Disallow setting .gas() on .transfer()
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 3e3a3818..7fccccbc 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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( |