chapter9-code-2

PHOTO EMBED

Thu Mar 30 2023 09:59:53 GMT+0000 (Coordinated Universal Time)

Saved by @RareSkills

contract ExampleContract {

	uint256 internal x;

	function setX(uint256 newValue) public {
		x = newValue;
	}
	
	// error: this function cannot be pure
	function getX() public pure returns (uint256) {
		return x;
	}
}
content_copyCOPY