You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
501 B
28 lines
501 B
pragma experimental "v0.5.0";
|
|
|
|
import "./../assets/PureView.sol";
|
|
|
|
contract TotallyPure is PureView {
|
|
uint onehundred = 99;
|
|
|
|
function usesThem() {
|
|
uint y = isPure(1,2);
|
|
uint z = isView();
|
|
}
|
|
|
|
function isPure(uint a, uint b) pure returns (uint){
|
|
return a * b;
|
|
}
|
|
|
|
function isView() view returns (uint){
|
|
return notpureview;
|
|
}
|
|
|
|
function bePure(uint a, uint b) pure returns (uint) {
|
|
return a + b;
|
|
}
|
|
|
|
function beView() view returns (uint){
|
|
return onehundred;
|
|
}
|
|
} |