mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not allow value for delegatecall functions.
This commit is contained in:
parent
d0054a8d29
commit
299fef0c79
@ -1623,7 +1623,7 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con
|
|||||||
case Location::BareDelegateCall:
|
case Location::BareDelegateCall:
|
||||||
{
|
{
|
||||||
MemberList::MemberMap members;
|
MemberList::MemberMap members;
|
||||||
if (m_location != Location::BareDelegateCall)
|
if (m_location != Location::BareDelegateCall && m_location != Location::DelegateCall)
|
||||||
members.push_back(MemberList::Member(
|
members.push_back(MemberList::Member(
|
||||||
"value",
|
"value",
|
||||||
make_shared<FunctionType>(
|
make_shared<FunctionType>(
|
||||||
|
Loading…
Reference in New Issue
Block a user