Skip to content

Commit

Permalink
fix try-runtime:skip pre-post && weight check
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatoAresTest committed Dec 21, 2023
1 parent 9cd2ca6 commit 03e96ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,30 @@ build-bifrost-polkadot-wasm:
build-bifrost-rococo-fast-wasm:
.maintain/build-wasm.sh bifrost-kusama fast

.PHONY: build-try-runtime # build bifrost rococo wasm
build-try-runtime:
cargo build -p bifrost-cli --locked --features "with-all-runtime,try-runtime" --release

.PHONY: try-kusama-runtime-upgrade # try kusama runtime upgrade
try-kusama-runtime-upgrade:
try-kusama-runtime-upgrade:build-try-runtime
try-runtime \
--runtime \
target/release/wbuild/bifrost-kusama-runtime/bifrost_kusama_runtime.compact.compressed.wasm \
on-runtime-upgrade live \
--uri wss://hk.p.bifrost-rpc.liebi.com:443/ws
on-runtime-upgrade \
--checks none \
--no-weight-warnings \
live \
--uri wss://hk.bifrost-rpc.liebi.com:443/ws

.PHONY: try-polkadot-runtime-upgrade # try polkadot runtime upgrade
try-polkadot-runtime-upgrade:
try-polkadot-runtime-upgrade:build-try-runtime
try-runtime \
--runtime \
target/release/wbuild/bifrost-polkadot-runtime/bifrost_polkadot_runtime.compact.compressed.wasm \
on-runtime-upgrade live \
on-runtime-upgrade \
--checks none \
--no-weight-warnings \
live \
--uri wss://hk.p.bifrost-rpc.liebi.com:443/ws

.PHONY: resources # export genesis resources
Expand Down
2 changes: 1 addition & 1 deletion pallets/slp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ pub mod pallet {

/// The current storage version, we set to 2 our new version(after migrate stroage from vec t
/// boundedVec).
const STORAGE_VERSION: StorageVersion = StorageVersion::new(2);
const STORAGE_VERSION: StorageVersion = StorageVersion::new(3);

/// One operate origin(can be a multisig account) for a currency. An operating origins are
/// normal account in Bifrost chain.
Expand Down

0 comments on commit 03e96ef

Please sign in to comment.