diff options
author | Christian <c@ethdev.com> | 2014-12-11 06:01:40 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-13 00:26:19 +0800 |
commit | c0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5 (patch) | |
tree | b3fa2b6b006b6d1b9799abe9e2ed25ddc685d370 /Types.cpp | |
parent | 6893d4d4557e9968feaa162c8fc5ea3859aa0565 (diff) | |
download | dexon-solidity-c0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5.tar.gz dexon-solidity-c0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5.tar.zst dexon-solidity-c0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5.zip |
Calls to bare contracts.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -194,6 +194,11 @@ u256 IntegerType::literalValue(Literal const& _literal) const const MemberList IntegerType::AddressMemberList = MemberList({{"balance", make_shared<IntegerType const>(256)}, + {"callstring32", make_shared<FunctionType const>(TypePointers({make_shared<StaticStringType const>(32)}), + TypePointers(), FunctionType::Location::BARE)}, + {"callstring32string32", make_shared<FunctionType const>(TypePointers({make_shared<StaticStringType const>(32), + make_shared<StaticStringType const>(32)}), + TypePointers(), FunctionType::Location::BARE)}, {"send", make_shared<FunctionType const>(TypePointers({make_shared<IntegerType const>(256)}), TypePointers(), FunctionType::Location::SEND)}}); @@ -424,6 +429,8 @@ unsigned FunctionType::getSizeOnStack() const return 1; case Location::EXTERNAL: return 2; + case Location::BARE: + return 1; default: return 0; } |