Closed rbharath closed 5 years ago
Should do this here as well:
https://github.com/computablelabs/goest/blob/master/contracts/Voting.vy#L56
so the actual code is the easy part:
assert self.foo_address == ZERO_ADDRESS
that assures it has not been set yet.
the fun part in this ticket is that many specs will need to be re-written which utilize the contracts "upstream" which have permission to do things (like create a voting candidate)
that, or, you can just introduce another deployed FooContract
whose privileged addresses are something you choose for that spec (like an authUser for test simplicity).
either is ok
Closed by #115
https://github.com/computablelabs/goest/blob/master/contracts/MarketToken.vy#L166
This TODO needs to be implemented to make sure that theft of factory key can't take down deployed contracts