Skip to content

Commit

Permalink
updated migrate versions (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Jul 22, 2024
1 parent 7e6f5ce commit 71dd109
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dao-pre-propose-base/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,9 @@ where
) -> Result<Response, PreProposeError> {
match msg {
MigrateMsg::FromUnderV250 { policy } => {
// all contracts >= v2.0.0 and < v2.5.0 have the same config
let required_str = ">=2.0.0, <2.5.0";
// all contracts >= v2.4.1 and < v2.5.0 have the same config
let required_str = ">=2.4.1, <2.5.0";

// ensure acceptable version
let requirement = VersionReq::parse(required_str).unwrap();
let ContractVersion { version, .. } = get_contract_version(deps.storage)?;
Expand Down

0 comments on commit 71dd109

Please sign in to comment.