Skip to content

Commit

Permalink
refactor(time-oracle): Moved migration module under feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov authored and Gancho Manev committed May 25, 2023
1 parent fa1be56 commit a8ed426
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/time-oracle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ authors = ["The Dev Nolus Team <dev@nolus.io>"]
edition.workspace = true
license.workspace = true

[features]
migrate = []

[dependencies]
platform = { workspace = true }
sdk = { workspace = true, features = ["storage"] }
Expand Down
2 changes: 2 additions & 0 deletions packages/time-oracle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use sdk::cosmwasm_std::StdError;
pub use crate::alarms::Alarms;

mod alarms;

#[cfg(feature = "migrate")]
pub mod migrate_v1;

#[derive(Error, Debug, PartialEq)]
Expand Down

0 comments on commit a8ed426

Please sign in to comment.