aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-14 00:35:48 +0800
committerGitHub <noreply@github.com>2017-09-14 00:35:48 +0800
commit5c9dbd50839ac153f367ce69abb10dd22877842e (patch)
tree98e3b524aaacdafb2c30feb04567159591bad562 /libsolidity/ast
parent3f3bcc4f8a0d12e9b92d6b63e7cfd92cbbfa775d (diff)
parent8b166c36369d0d1b39a4c537bc6ee8a08f3c6e5a (diff)
downloaddexon-solidity-5c9dbd50839ac153f367ce69abb10dd22877842e.tar.gz
dexon-solidity-5c9dbd50839ac153f367ce69abb10dd22877842e.tar.zst
dexon-solidity-5c9dbd50839ac153f367ce69abb10dd22877842e.zip
Merge pull request #2473 from ethereum/functiontype-sig
Add .selector member on function types
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 10424858..705d0f7f 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -2436,6 +2436,11 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con
case Kind::BareDelegateCall:
{
MemberList::MemberMap members;
+ if (m_kind == Kind::External)
+ members.push_back(MemberList::Member(
+ "selector",
+ make_shared<FixedBytesType>(4)
+ ));
if (m_kind != Kind::BareDelegateCall && m_kind != Kind::DelegateCall)
{
if (isPayable())