Skip to content

Commit

Permalink
remove pallet xcm migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Roznovjak committed Nov 22, 2023
1 parent b5ca288 commit 91ea7a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ format:

.PHONY: try-runtime
try-runtime:
try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri --uri wss://rpc.hydradx.cloud:443
cargo build --release --features try-runtime
try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri wss://rpc.hydradx.cloud:443

.PHONY: build-docs
build-docs:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ The `try-runtime` tool can be used to test storage migrations and runtime upgrad
Run the following command to test against the state on HydraDX.
Don't forget to use a runtime built with `try-runtime` feature.
```bash
try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri --uri wss://rpc.hydradx.cloud:443
try-runtime --runtime ./target/release/wbuild/hydradx-runtime/hydradx_runtime.wasm on-runtime-upgrade --checks all live --uri wss://rpc.hydradx.cloud:443
```
or against HydraDX testnet on Rococo using `--uri wss://rococo-hydradx-rpc.hydration.dev:443`

Expand Down
5 changes: 0 additions & 5 deletions runtime/hydradx/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ impl OnRuntimeUpgrade for OnRuntimeUpgradeMigration {
weight = weight.saturating_add(orml_unknown_tokens::Migration::<Runtime>::on_runtime_upgrade());
log::info!("Migrate Unknown Tokens Pallet to v2 end");

log::info!("Migrate XCM Pallet to v1 start");
weight = weight
.saturating_add(pallet_xcm::migration::v1::VersionUncheckedMigrateToV1::<Runtime>::on_runtime_upgrade());
log::info!("Migrate XCM Pallet to v1 end");

let evm_id: u64 = 222_222u64;
ChainId::<Runtime>::put(evm_id);
weight = weight.saturating_add(<Runtime as frame_system::Config>::DbWeight::get().reads_writes(0, 1));
Expand Down

0 comments on commit 91ea7a4

Please sign in to comment.