Created
October 8, 2018 12:38
-
-
Save ngrinkevich/8a273529760502803627f1cbd21133ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract CallbackContract { | |
uint256 internal _randomNumber; | |
/** | |
* @dev Example of a callback method. | |
*/ | |
function callback(uint256 requestResponse) | |
public | |
{ | |
_randomNumber = requestResponse; | |
} | |
/** | |
* @dev Returns previously set random number. | |
*/ | |
function randomNumber() public view returns (uint256) | |
{ | |
return _randomNumber; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment