aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-27 17:25:36 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-13 18:40:57 +0800
commit58f7a27ee0336423fa7dc76b8a160b78301bbdd2 (patch)
tree0a5913c37d415d853df6f430dc3b1ff4934579b1 /libsolidity/ast
parent8bb96eaaf533b17cd9c9109642455408f551348c (diff)
downloaddexon-solidity-58f7a27ee0336423fa7dc76b8a160b78301bbdd2.tar.gz
dexon-solidity-58f7a27ee0336423fa7dc76b8a160b78301bbdd2.tar.zst
dexon-solidity-58f7a27ee0336423fa7dc76b8a160b78301bbdd2.zip
Add sig member on function type
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..5aa52383 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(
+ "sig",
+ make_shared<FixedBytesType>(4)
+ ));
if (m_kind != Kind::BareDelegateCall && m_kind != Kind::DelegateCall)
{
if (isPayable())