solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol

13 lines
327 B
Solidity
Raw Normal View History

contract C {
function f() public {
address addr;
uint balance = addr.balance;
2018-08-15 21:30:09 +00:00
(bool callSuc,) = addr.call("");
(bool delegatecallSuc,) = addr.delegatecall("");
bool sendRet = addr.send(1);
addr.transfer(1);
2018-08-15 21:30:09 +00:00
balance; callSuc; delegatecallSuc; sendRet;
}
}
// ----