diff --git a/Cargo.lock b/Cargo.lock index e376cad..1b412c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2319,7 +2319,7 @@ dependencies = [ [[package]] name = "transmuter" -version = "2.1.0" +version = "3.0.0" dependencies = [ "cosmwasm-schema", "cosmwasm-std", diff --git a/contracts/transmuter/Cargo.toml b/contracts/transmuter/Cargo.toml index e1e4e24..8a67e7f 100644 --- a/contracts/transmuter/Cargo.toml +++ b/contracts/transmuter/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Supanat Potiwarakorn "] edition = "2021" name = "transmuter" -version = "2.1.0" +version = "3.0.0" exclude = [ # Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication. diff --git a/contracts/transmuter/src/error.rs b/contracts/transmuter/src/error.rs index 3d9a6ed..3e766b6 100644 --- a/contracts/transmuter/src/error.rs +++ b/contracts/transmuter/src/error.rs @@ -4,7 +4,7 @@ use cosmwasm_std::{ }; use thiserror::Error; -use crate::{math::MathError, migrations::v2_1_0}; +use crate::{math::MathError, migrations::v3_0_0}; #[derive(Error, Debug, PartialEq)] pub enum ContractError { @@ -189,5 +189,5 @@ pub enum ContractError { MathError(#[from] MathError), #[error("Migration Error: {0}")] - MigrationError(#[from] v2_1_0::MigrationError), + MigrationError(#[from] v3_0_0::MigrationError), } diff --git a/contracts/transmuter/src/lib.rs b/contracts/transmuter/src/lib.rs index f26ce4b..81c7838 100644 --- a/contracts/transmuter/src/lib.rs +++ b/contracts/transmuter/src/lib.rs @@ -96,9 +96,9 @@ mod entry_points { pub fn migrate( deps: DepsMut, _env: Env, - msg: migrations::v2_1_0::MigrateMsg, + msg: migrations::v3_0_0::MigrateMsg, ) -> Result { - migrations::v2_1_0::execute_migration(deps, msg) + migrations::v3_0_0::execute_migration(deps, msg) } } diff --git a/contracts/transmuter/src/migrations/mod.rs b/contracts/transmuter/src/migrations/mod.rs index 78e0d72..21443f3 100644 --- a/contracts/transmuter/src/migrations/mod.rs +++ b/contracts/transmuter/src/migrations/mod.rs @@ -1 +1 @@ -pub mod v2_1_0; +pub mod v3_0_0; diff --git a/contracts/transmuter/src/migrations/v2_1_0.rs b/contracts/transmuter/src/migrations/v3_0_0.rs similarity index 98% rename from contracts/transmuter/src/migrations/v2_1_0.rs rename to contracts/transmuter/src/migrations/v3_0_0.rs index 5ded0ec..c0e089f 100644 --- a/contracts/transmuter/src/migrations/v2_1_0.rs +++ b/contracts/transmuter/src/migrations/v3_0_0.rs @@ -14,7 +14,7 @@ use crate::{ }; const FROM_VERSION: &str = "2.0.0"; -const TO_VERSION: &str = "2.1.0"; +const TO_VERSION: &str = "3.0.0"; #[derive(Error, Debug, PartialEq)] pub enum MigrationError { @@ -61,7 +61,7 @@ pub fn execute_migration(deps: DepsMut, msg: MigrateMsg) -> Result