Created
March 21, 2020 17:09
-
-
Save alexroan/6d7e0b559c6a8a56b12d2c34ab069773 to your computer and use it in GitHub Desktop.
truffle-tests/EntryPoint.sol
This file contains hidden or 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
pragma solidity >=0.5.0; | |
import "./Background.sol"; | |
contract EntryPoint { | |
address public backgroundAddress; | |
constructor(address _background) public{ | |
backgroundAddress = _background; | |
} | |
function getBackgroundAddress() public view returns (address) { | |
return backgroundAddress; | |
} | |
function storeTwoValues(uint first, uint second) public { | |
Background(backgroundAddress).storeValue(first); | |
Background(backgroundAddress).storeValue(second); | |
} | |
function getNumberOfValues() public view returns (uint) { | |
return Background(backgroundAddress).getNumberOfValues(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment