laconicd/tests/solidity/suites/proxy/contracts/test/DepositableDelegateProxyMock.sol
Federico Kunze 96cad7de9c
tests: reorganize packages (#7)
* tests: reorganize testing packages

* gitignore and minor changes
2021-05-11 07:54:55 -04:00

25 lines
605 B
Solidity

pragma solidity 0.4.24;
import "../DepositableDelegateProxy.sol";
contract DepositableDelegateProxyMock is DepositableDelegateProxy {
address private implementationMock;
function enableDepositsOnMock() external {
setDepositable(true);
}
function setImplementationOnMock(address _implementationMock) external {
implementationMock = _implementationMock;
}
function implementation() public view returns (address) {
return implementationMock;
}
function proxyType() public pure returns (uint256 proxyTypeId) {
return UPGRADEABLE;
}
}