Skip to content

Commit

Permalink
Merge pull request #189 from confio/fix/contract-name
Browse files Browse the repository at this point in the history
Support old contract name during migration
  • Loading branch information
maurolacy committed Sep 22, 2022
2 parents 8b0ab53 + fb3d846 commit 49360b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion contracts/tgrade-validator-voting/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,11 @@ fn privilege_change(change: PrivilegeChangeMsg) -> Response {

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env, _msg: Empty) -> Result<Response, ContractError> {
ensure_from_older_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;
ensure_from_older_version(
deps.storage,
"crates.io:tgrade_validator_voting_proposals",
CONTRACT_VERSION,
)?;
Ok(Response::new())
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/optimizer.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:

U="cosmwasm"
V="0.12.7"
V="0.12.8"

M=$(uname -m)
A="linux/${M/x86_64/amd64}"
Expand Down

0 comments on commit 49360b3

Please sign in to comment.