diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-07 00:54:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-24 08:18:18 +0800 |
commit | 81006dae98ee18c33994af0274de10857774ff70 (patch) | |
tree | f12a3778dacf688b76df7ecabcc1ad24954e36aa /libsolidity/ast | |
parent | ba437ef31a95f40f510a475e8b329f061e929b90 (diff) | |
download | dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.gz dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.tar.zst dexon-solidity-81006dae98ee18c33994af0274de10857774ff70.zip |
Support gas modifier on addr.transfer()
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 7fccccbc..3e3a3818 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2315,9 +2315,10 @@ 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) + if (m_location != Location::BareDelegateCall && m_location != Location::DelegateCall && m_location != Location::Transfer) { if (m_isPayable) members.push_back(MemberList::Member( |