Testing for ccd006-citycoin-mining
Closed this issue · 1 comments
whoabuddy commented
Since this contract is very similar to the original, there's already work in #59 to duplicate the test structure. The biggest difference is it will require passing ccip-014 so a separate function could be built similar to passProposal
that will:
- deploy the dao
- mine and stack for 3 cycles
- confirm claims before ccip-014
- execute ccip-014
Then a similar function may be used, or a least a pattern where:
- mine and stack for 3 cycles
- confirm claims after ccip-014
whoabuddy commented
Note: this was easier to approach from the context of ccip-014 tests, which now verify:
- mining succeeds in v1 before the upgrade
- mining fails in v1 after the upgrade
- mining succeeds in v2 after the upgrade
- claims from v1 succeed after the upgrade
- claims from v2 succeed after the upgrade