Skip to content

Commit

Permalink
Merge pull request #675 from public-awesome/jhernandezb/update-versions
Browse files Browse the repository at this point in the history
update migrate version
  • Loading branch information
jhernandezb authored Apr 3, 2024
2 parents 5dfcacd + f108569 commit 2000575
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/minters/vending-minter-featured/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ pub fn migrate(deps: DepsMut, env: Env, _msg: Empty) -> Result<Response, Contrac
return Ok(Response::new());
}
// init last discount time for older contracts during migration
if version < Version::new(3, 6, 0) {
if version < Version::new(3, 8, 0) {
let last_discount_time = env.block.time.minus_seconds(60 * 60 * 12);
LAST_DISCOUNT_TIME.save(deps.storage, &last_discount_time)?;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/minters/vending-minter-merkle-wl/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ pub fn migrate(deps: DepsMut, env: Env, _msg: Empty) -> Result<Response, Contrac
return Ok(Response::new());
}
// init last discount time for older contracts during migration
if version < Version::new(3, 6, 0) {
if version < Version::new(3, 8, 0) {
let last_discount_time = env.block.time.minus_seconds(60 * 60 * 12);
LAST_DISCOUNT_TIME.save(deps.storage, &last_discount_time)?;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ pub fn migrate(deps: DepsMut, env: Env, _msg: Empty) -> Result<Response, Contrac
return Ok(Response::new());
}
// init last discount time for older contracts during migration
if version < Version::new(3, 6, 0) {
if version < Version::new(3, 8, 0) {
let last_discount_time = env.block.time.minus_seconds(60 * 60 * 12);
LAST_DISCOUNT_TIME.save(deps.storage, &last_discount_time)?;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/minters/vending-minter-wl-flex/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ pub fn migrate(deps: DepsMut, env: Env, _msg: Empty) -> Result<Response, Contrac
return Ok(Response::new());
}
// init last discount time for older contracts during migration
if version < Version::new(3, 6, 0) {
if version < Version::new(3, 8, 0) {
let last_discount_time = env.block.time.minus_seconds(60 * 60 * 12);
LAST_DISCOUNT_TIME.save(deps.storage, &last_discount_time)?;
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/minters/vending-minter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ pub fn migrate(deps: DepsMut, env: Env, _msg: Empty) -> Result<Response, Contrac
return Ok(Response::new());
}
// init last discount time for older contracts during migration
if version < Version::new(3, 6, 0) {
if version < Version::new(3, 8, 0) {
let last_discount_time = env.block.time.minus_seconds(60 * 60 * 12);
LAST_DISCOUNT_TIME.save(deps.storage, &last_discount_time)?;
}
Expand Down

0 comments on commit 2000575

Please sign in to comment.