You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
400 B
Solidity
20 lines
400 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity ^0.4.16;
|
|
|
|
contract TestAddr {
|
|
|
|
function deposit() public payable {
|
|
|
|
}
|
|
|
|
/* 获取余额 */
|
|
function getBalance() public constant returns (uint) {
|
|
return this.balance;
|
|
}
|
|
|
|
/* 转移以太 */
|
|
function transferEther(address towho) public {
|
|
towho.transfer(10); // send 方法可能会失败
|
|
}
|
|
}
|