[Crowdfund] Disable Migration from v1.0.0
Closed this issue · 1 comments
crnbarr93 commented
Description
Due to the scale of the restructure for the crowdfund contract we should disable migration from v1.0.x
versions of this contract.
Implementation
Add an additional check in the migrate
handler that checks state for the previous version (before it is updated by ADOContract::default().migrate
) to ensure that it is not migrating from v1.0.0
:
Acceptance Criteria
- Inability to migrate from
andromeda-crowdfundv1.0.x
contracts - Testing to ensure this check holds
crnbarr93 commented
I wonder if we can maybe add a generic handler for something like this to our std crate? That way if we need to set a minimum upgrade version in any contract in future we have a simple method we can call.