Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcobb23 committed Nov 14, 2024
1 parent 7c80072 commit de496fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/voting-verifier/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mod query;

const CONTRACT_NAME: &str = env!("CARGO_PKG_NAME");
const CONTRACT_VERSION: &str = env!("CARGO_PKG_VERSION");
const BASE_VERSION: &str = "1.0.0";

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn instantiate(
Expand Down Expand Up @@ -110,6 +111,7 @@ pub fn migrate(
_env: Env,
_msg: Empty,
) -> Result<Response, axelar_wasm_std::error::ContractError> {
cw2::assert_contract_version(deps.storage, CONTRACT_NAME, BASE_VERSION)?;

Check warning on line 114 in contracts/voting-verifier/src/contract.rs

View check run for this annotation

Codecov / codecov/patch

contracts/voting-verifier/src/contract.rs#L114

Added line #L114 was not covered by tests
// any version checks should be done before here
cw2::set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)?;

Check warning on line 116 in contracts/voting-verifier/src/contract.rs

View check run for this annotation

Codecov / codecov/patch

contracts/voting-verifier/src/contract.rs#L116

Added line #L116 was not covered by tests

Expand Down

0 comments on commit de496fa

Please sign in to comment.