Skip to content

Instantly share code, notes, and snippets.

@muellerberndt
Created May 16, 2018 04:14
Show Gist options
  • Save muellerberndt/0bfc0b52f9ec1926a1d4397dbb9c82b3 to your computer and use it in GitHub Desktop.
Save muellerberndt/0bfc0b52f9ec1926a1d4397dbb9c82b3 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.17;
contract Callee {
function theFunction(uint value) public returns(bool retval) {
if (value == 1){
return true;
} else {
return false;
}
}
}
contract Caller {
Callee callee = new Callee();
function start(uint value) {
callee.theFunction(value) ;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment