Skip to content

Commit

Permalink
fix unbound vars error in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Jul 25, 2023
1 parent 3627bb6 commit a6d19c9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/packages/test/scripts/xcm-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ source scripts/set-env.sh
send_governance_transact_from_relaychain() {
local para_id=$1
local hex_encoded_data=$2
local require_weight_at_most_ref_time=$(echo "$3")
local require_weight_at_most_proof_size=$(echo "$4")
if [ -z "${require_weight_at_most_ref_time}" ]; then
require_weight_at_most_ref_time=200000000
fi
if [ -z "${require_weight_at_most_proof_size}" ]; then
require_weight_at_most_proof_size=12000
fi
local require_weight_at_most_ref_time=${3:-200000000}
local require_weight_at_most_proof_size=${4:-12000}
echo " calling send_governance_transact:"
echo " relay_url: ${relaychain_ws_url}"
echo " relay_chain_seed: ${relaychain_sudo_seed}"
Expand Down

0 comments on commit a6d19c9

Please sign in to comment.