Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
pragma solidity 0.4.16;
import "./SingleOwnerGuard.sol";
import "./GuardRegistry.sol";
import "./Vault.sol";
contract Setup {
GuardRegistry public registry;
Vault public vault;
function Setup() public {
registry = new GuardRegistry();
registry.registerGuardImplementation(new SingleOwnerGuard(), true);
vault = new Vault(registry);
SingleOwnerGuard guard = SingleOwnerGuard(vault.guard());
guard.addPublicOperation("deposit");
guard.addPublicOperation("withdraw");
}
function isSolved() public view returns (bool) {
return vault.owner() != address(this);
}
}