Skip to content
Snippets Groups Projects
Unverified Commit 8220c980 authored by Serban Iorga's avatar Serban Iorga Committed by GitHub
Browse files

Fix zombienet-bridges-0001-asset-transfer-works (#4069)


Fixes https://github.com/paritytech/polkadot-sdk/issues/3999

---------

Co-authored-by: default avatarBranislav Kontur <bkontur@gmail.com>
parent 5b513cc0
Branches
No related merge requests found
Pipeline #465300 passed with warnings with stages
in 45 minutes and 40 seconds
...@@ -212,19 +212,19 @@ case "$1" in ...@@ -212,19 +212,19 @@ case "$1" in
"ws://127.0.0.1:8943" \ "ws://127.0.0.1:8943" \
"//Alice" \ "//Alice" \
"$ASSET_HUB_ROCOCO_SOVEREIGN_ACCOUNT_AT_BRIDGE_HUB_ROCOCO" \ "$ASSET_HUB_ROCOCO_SOVEREIGN_ACCOUNT_AT_BRIDGE_HUB_ROCOCO" \
$((1000000000000 + 50000000000 * 20)) 100000000000000
# drip SA of lane dedicated to asset hub for paying rewards for delivery # drip SA of lane dedicated to asset hub for paying rewards for delivery
transfer_balance \ transfer_balance \
"ws://127.0.0.1:8943" \ "ws://127.0.0.1:8943" \
"//Alice" \ "//Alice" \
"$ON_BRIDGE_HUB_ROCOCO_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhwd_ThisChain" \ "$ON_BRIDGE_HUB_ROCOCO_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhwd_ThisChain" \
$((1000000000000 + 2000000000000)) 100000000000000
# drip SA of lane dedicated to asset hub for paying rewards for delivery confirmation # drip SA of lane dedicated to asset hub for paying rewards for delivery confirmation
transfer_balance \ transfer_balance \
"ws://127.0.0.1:8943" \ "ws://127.0.0.1:8943" \
"//Alice" \ "//Alice" \
"$ON_BRIDGE_HUB_ROCOCO_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhwd_BridgedChain" \ "$ON_BRIDGE_HUB_ROCOCO_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhwd_BridgedChain" \
$((1000000000000 + 2000000000000)) 100000000000000
# set XCM version of remote BridgeHubWestend # set XCM version of remote BridgeHubWestend
force_xcm_version \ force_xcm_version \
"ws://127.0.0.1:9942" \ "ws://127.0.0.1:9942" \
...@@ -270,19 +270,19 @@ case "$1" in ...@@ -270,19 +270,19 @@ case "$1" in
"ws://127.0.0.1:8945" \ "ws://127.0.0.1:8945" \
"//Alice" \ "//Alice" \
"$ASSET_HUB_WESTEND_SOVEREIGN_ACCOUNT_AT_BRIDGE_HUB_WESTEND" \ "$ASSET_HUB_WESTEND_SOVEREIGN_ACCOUNT_AT_BRIDGE_HUB_WESTEND" \
$((1000000000000000 + 50000000000 * 20)) 100000000000000
# drip SA of lane dedicated to asset hub for paying rewards for delivery # drip SA of lane dedicated to asset hub for paying rewards for delivery
transfer_balance \ transfer_balance \
"ws://127.0.0.1:8945" \ "ws://127.0.0.1:8945" \
"//Alice" \ "//Alice" \
"$ON_BRIDGE_HUB_WESTEND_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhro_ThisChain" \ "$ON_BRIDGE_HUB_WESTEND_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhro_ThisChain" \
$((1000000000000000 + 2000000000000)) 100000000000000
# drip SA of lane dedicated to asset hub for paying rewards for delivery confirmation # drip SA of lane dedicated to asset hub for paying rewards for delivery confirmation
transfer_balance \ transfer_balance \
"ws://127.0.0.1:8945" \ "ws://127.0.0.1:8945" \
"//Alice" \ "//Alice" \
"$ON_BRIDGE_HUB_WESTEND_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhro_BridgedChain" \ "$ON_BRIDGE_HUB_WESTEND_SOVEREIGN_ACCOUNT_FOR_LANE_00000002_bhro_BridgedChain" \
$((1000000000000000 + 2000000000000)) 100000000000000
# set XCM version of remote BridgeHubRococo # set XCM version of remote BridgeHubRococo
force_xcm_version \ force_xcm_version \
"ws://127.0.0.1:9945" \ "ws://127.0.0.1:9945" \
......
...@@ -53,7 +53,7 @@ function call_polkadot_js_api() { ...@@ -53,7 +53,7 @@ function call_polkadot_js_api() {
# With it, it just submits it to the tx pool and exits. # With it, it just submits it to the tx pool and exits.
# --nonce -1: means to compute transaction nonce using `system_accountNextIndex` RPC, which includes all # --nonce -1: means to compute transaction nonce using `system_accountNextIndex` RPC, which includes all
# transaction that are in the tx pool. # transaction that are in the tx pool.
polkadot-js-api --noWait --nonce -1 "$@" polkadot-js-api --nonce -1 "$@" || true
} }
function generate_hex_encoded_call_data() { function generate_hex_encoded_call_data() {
......
...@@ -24,12 +24,6 @@ echo -e "Sleeping 90s before starting relayer ...\n" ...@@ -24,12 +24,6 @@ echo -e "Sleeping 90s before starting relayer ...\n"
sleep 90 sleep 90
${BASH_SOURCE%/*}/../../environments/rococo-westend/start_relayer.sh $rococo_dir $westend_dir relayer_pid ${BASH_SOURCE%/*}/../../environments/rococo-westend/start_relayer.sh $rococo_dir $westend_dir relayer_pid
# Sometimes the relayer syncs multiple parachain heads in the beginning leading to test failures.
# See issue: https://github.com/paritytech/parity-bridges-common/issues/2838.
# TODO: Remove this sleep after the issue is fixed.
echo -e "Sleeping 180s before runing the tests ...\n"
sleep 180
run_zndsl ${BASH_SOURCE%/*}/rococo-to-westend.zndsl $westend_dir run_zndsl ${BASH_SOURCE%/*}/rococo-to-westend.zndsl $westend_dir
run_zndsl ${BASH_SOURCE%/*}/westend-to-rococo.zndsl $rococo_dir run_zndsl ${BASH_SOURCE%/*}/westend-to-rococo.zndsl $rococo_dir
# this image is built on top of existing Zombienet image # this image is built on top of existing Zombienet image
ARG ZOMBIENET_IMAGE ARG ZOMBIENET_IMAGE
# this image uses substrate-relay image built elsewhere # this image uses substrate-relay image built elsewhere
ARG SUBSTRATE_RELAY_IMAGE=docker.io/paritytech/substrate-relay:v2023-11-07-rococo-westend-initial-relayer ARG SUBSTRATE_RELAY_IMAGE=docker.io/paritytech/substrate-relay:v1.2.1
# metadata # metadata
ARG VCS_REF ARG VCS_REF
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment