aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-11 06:01:40 +0800
committerChristian <c@ethdev.com>2014-12-13 00:26:19 +0800
commitc0bba438b1d93b3ebba46e03935dbdf8b1ba6bd5 (patch)
treeb3fa2b6b006b6d1b9799abe9e2ed25ddc685d370 /Types.cpp
parent6893d4d4557e9968feaa162c8fc5ea3859aa0565 (diff)
downloaddexon-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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 00e530c3..a0a809b9 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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;
}