Skip to content

Commit

Permalink
fix: apply deprecation of export genesis state to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed May 24, 2024
1 parent e0dd656 commit bb717fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/export_parachain_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if [[ $should_build == "true" ]]; then
fi

echo "Exporting State & Wasm"
$PWD/target/release/centrifuge-chain export-genesis-state --chain node/res/$chain_name-spec-raw.json > $chain_name-genesis-state
$PWD/target/release/centrifuge-chain export-genesis-head --chain node/res/$chain_name-spec-raw.json > $chain_name-genesis-state
$PWD/target/release/centrifuge-chain export-genesis-wasm --chain node/res/$chain_name-spec-raw.json > $chain_name-genesis-wasm
4 changes: 2 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ onboard-parachain)

wasm_location="$onboard_dir/${parachain}-${para_id}.wasm"
if [ "$docker_onboard" == "true" ]; then
genesis=$(docker run centrifugeio/centrifuge-chain:${cc_docker_image_tag} export-genesis-state --chain="${parachain}" --parachain-id="${para_id}")
genesis=$(docker run centrifugeio/centrifuge-chain:${cc_docker_image_tag} export-genesis-head --chain="${parachain}")
docker run centrifugeio/centrifuge-chain:${cc_docker_image_tag} export-genesis-wasm --chain="${parachain}" > $wasm_location
else
genesis=$(./target/release/centrifuge-chain export-genesis-state --chain="${parachain}" --parachain-id="${para_id}")
genesis=$(./target/release/centrifuge-chain export-genesis-head --chain="${parachain}")
./target/release/centrifuge-chain export-genesis-wasm --chain="${parachain}" > $wasm_location
fi

Expand Down

0 comments on commit bb717fe

Please sign in to comment.