aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-03-11 21:41:00 +0800
committerchriseth <c@ethdev.com>2016-03-12 00:50:09 +0800
commit299fef0c797c045888af5241334247390169bef1 (patch)
treeee25d1d01458efde9934fbff3fa2eace263dd261 /libsolidity
parentd0054a8d294901a0107e37d19ab6cb858d3a72f1 (diff)
downloaddexon-solidity-299fef0c797c045888af5241334247390169bef1.tar.gz
dexon-solidity-299fef0c797c045888af5241334247390169bef1.tar.zst
dexon-solidity-299fef0c797c045888af5241334247390169bef1.zip
Do not allow value for delegatecall functions.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 0696b908..4dc1eb13 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -1623,7 +1623,7 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con
case Location::BareDelegateCall:
{
MemberList::MemberMap members;
- if (m_location != Location::BareDelegateCall)
+ if (m_location != Location::BareDelegateCall && m_location != Location::DelegateCall)
members.push_back(MemberList::Member(
"value",
make_shared<FunctionType>(