diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-29 01:15:41 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-13 18:40:57 +0800 |
commit | fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13 (patch) | |
tree | f26a3d511fb37abc12b67070582acc20cac3d156 /libsolidity | |
parent | 88946f9f03625fab345572c66b33ee3e05a07159 (diff) | |
download | dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar.gz dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar.bz2 dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar.lz dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar.xz dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.tar.zst dexon-solidity-fd1f8ab38ba7f2bb04e67a44ea5e947eddcf9b13.zip |
Rename .sig to .selector on function types
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/Types.cpp | 2 | ||||
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 5aa52383..705d0f7f 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -2438,7 +2438,7 @@ MemberList::MemberMap FunctionType::nativeMembers(ContractDefinition const*) con MemberList::MemberMap members; if (m_kind == Kind::External) members.push_back(MemberList::Member( - "sig", + "selector", make_shared<FixedBytesType>(4) )); if (m_kind != Kind::BareDelegateCall && m_kind != Kind::DelegateCall) diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index b7aadc12..631a25ff 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -1068,7 +1068,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess) solAssert(false, "Invalid member access to integer"); break; case Type::Category::Function: - if (member == "sig") + if (member == "selector") { m_context << Instruction::SWAP1 << Instruction::POP; /// need to store store it as bytes4 |