mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Calls to bare contracts.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user