mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implement address.transfer()
This commit is contained in:
@@ -464,7 +464,8 @@ MemberList::MemberMap IntegerType::nativeMembers(ContractDefinition const*) cons
|
||||
{"call", make_shared<FunctionType>(strings(), strings{"bool"}, FunctionType::Location::Bare, true, false, true)},
|
||||
{"callcode", make_shared<FunctionType>(strings(), strings{"bool"}, FunctionType::Location::BareCallCode, true, false, true)},
|
||||
{"delegatecall", make_shared<FunctionType>(strings(), strings{"bool"}, FunctionType::Location::BareDelegateCall, true)},
|
||||
{"send", make_shared<FunctionType>(strings{"uint"}, strings{"bool"}, FunctionType::Location::Send)}
|
||||
{"send", make_shared<FunctionType>(strings{"uint"}, strings{"bool"}, FunctionType::Location::Send)},
|
||||
{"transfer", make_shared<FunctionType>(strings{"uint"}, strings(), FunctionType::Location::Transfer)}
|
||||
};
|
||||
else
|
||||
return MemberList::MemberMap();
|
||||
@@ -2097,6 +2098,7 @@ string FunctionType::identifier() const
|
||||
case Location::BareDelegateCall: id += "baredelegatecall"; break;
|
||||
case Location::Creation: id += "creation"; break;
|
||||
case Location::Send: id += "send"; break;
|
||||
case Location::Transfer: id += "transfer"; break;
|
||||
case Location::SHA3: id += "sha3"; break;
|
||||
case Location::Selfdestruct: id += "selfdestruct"; break;
|
||||
case Location::Revert: id += "revert"; break;
|
||||
|
||||
@@ -826,6 +826,7 @@ public:
|
||||
BareDelegateCall, ///< DELEGATECALL without function hash
|
||||
Creation, ///< external call using CREATE
|
||||
Send, ///< CALL, but without data and gas
|
||||
Transfer, ///< CALL, but without data and throws on error
|
||||
SHA3, ///< SHA3
|
||||
Selfdestruct, ///< SELFDESTRUCT
|
||||
Revert, ///< REVERT
|
||||
|
||||
Reference in New Issue
Block a user