Skip to content

Commit

Permalink
Merge branch 'development' into feat_upgrade_polkadot_1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
renauter authored Sep 2, 2024
2 parents b9b19ed + 04128c8 commit 39f9efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion substrate-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resolver = "2"
# External (without extra features and with default disabled if necessary)
base58 = {version = "0.2.0", default-features = false}
bitflags = {version = "1.3.2", default-features = false}
clap = { version = "4.4.6", features = ["derive"] }
clap = { version = "4.4.4", features = ["derive"] }
parity-scale-codec = { version = "3.6.1", default-features = false }
env_logger = "0.10.0"
futures = {version = "0.3.21", default-features = false}
Expand Down
6 changes: 3 additions & 3 deletions substrate-node/pallets/pallet-tft-bridge/src/migrations/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateBurnTransactionsV2<T> {
fn pre_upgrade() -> Result<Vec<u8>, sp_runtime::TryRuntimeError> {
info!("current pallet version: {:?}", PalletVersion::<T>::get());
ensure!(
PalletVersion::<T>::get() == types::StorageVersion::V1,
PalletVersion::<T>::get() >= types::StorageVersion::V1,
DispatchError::Other("Unexpected pallet version")
);

Expand All @@ -36,7 +36,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateBurnTransactionsV2<T> {
executed_burn_transactions_count
);

info!("👥 TFT-BRIDGE pallet to V1 passes PRE migrate checks ✅",);
info!("👥 TFT-BRIDGE pallet to V2 passes PRE migrate checks ✅",);
Ok(Vec::<u8>::new())
}

Expand All @@ -55,7 +55,7 @@ impl<T: Config> OnRuntimeUpgrade for MigrateBurnTransactionsV2<T> {
) -> Result<(), sp_runtime::TryRuntimeError> {
info!("current pallet version: {:?}", PalletVersion::<T>::get());
ensure!(
PalletVersion::<T>::get() == types::StorageVersion::V2,
PalletVersion::<T>::get() >= types::StorageVersion::V2,
DispatchError::Other("Unexpected pallet version")
);

Expand Down

0 comments on commit 39f9efc

Please sign in to comment.