以太坊solidity编程函数
2019-08-02 本文已影响11人
黑猫编程
函数关键字
编程实例
pragma solidity ^0.4.24;
contract Test {
uint256 public ui256 = 100;
int8 private i10 = -10;
function add() private view returns(uint256) {
return ui256 + uint256(i10);
}
function isEqueal() public view returns(bool) {
return ui256 == uint256(i10);
}
function Add() public view returns(uint256){
return add();
}
}