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.
19 lines
493 B
19 lines
493 B
6 years ago
|
pragma solidity ^0.5.0;
|
||
7 years ago
|
|
||
|
contract PureView {
|
||
|
|
||
|
// Make sure we aren't corrupting anything with the replace
|
||
|
uint notpureview = 5;
|
||
|
|
||
7 years ago
|
// Abstract functions to inherit from an uninstrumented, imported file.
|
||
7 years ago
|
function bePure(uint a, uint b) public pure returns (uint);
|
||
|
function beView() public view returns (uint);
|
||
7 years ago
|
|
||
7 years ago
|
function inheritedPure(uint a, uint b) public pure returns(uint){
|
||
7 years ago
|
return a + b;
|
||
|
}
|
||
|
|
||
7 years ago
|
function inheritedView() public view returns (uint){
|
||
7 years ago
|
return notpureview;
|
||
|
}
|
||
7 years ago
|
}
|