Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrobot committed May 1, 2024
1 parent c69be10 commit 22e027f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/swap/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ pub fn migrate(
},
"crates.io:swap-contract" => match contract_version.version.as_ref() {
"1.0.1" => {
unimplemented!(
"Migration from version {} is no yet supported",
contract_version.version
);
// No further updates needed
set_contract_version(
deps.storage,
format!("crates.io:{CONTRACT_NAME}"),
CONTRACT_VERSION,
)?;
}
_ => return Err(ContractError::MigrationError {}),
},
Expand Down

0 comments on commit 22e027f

Please sign in to comment.