diff --git a/scripts/settlement/generate_denom_metadata.sh b/scripts/settlement/generate_denom_metadata.sh index 38fc552..60de4c3 100755 --- a/scripts/settlement/generate_denom_metadata.sh +++ b/scripts/settlement/generate_denom_metadata.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ -n "$ROLLAPP_SETTLEMENT_INIT_DIR_PATH" ]; then +if [ -z "$ROLLAPP_SETTLEMENT_INIT_DIR_PATH" ]; then echo "ROLLAPP_SETTLEMENT_INIT_DIR_PATH is not set, using '$HOME/.rollapp_evm/init'" ROLLAPP_SETTLEMENT_INIT_DIR_PATH="$HOME/.rollapp_evm/init" fi diff --git a/scripts/settlement/register_rollapp_to_hub.sh b/scripts/settlement/register_rollapp_to_hub.sh index 4d669b2..c5be4e7 100755 --- a/scripts/settlement/register_rollapp_to_hub.sh +++ b/scripts/settlement/register_rollapp_to_hub.sh @@ -5,12 +5,12 @@ MAX_SEQUENCERS=5 # this account must be whitelisted on the hub for permissioned deployment setup DEPLOYER="local-user" -if [ -n "$HUB_RPC_URL" ]; then +if [ -z "$HUB_RPC_URL" ]; then echo "HUB_RPC_URL is not set, using 'http://localhost:36657'" HUB_RPC_URL="http://localhost:36657" fi -if [ -n "$HUB_CHAIN_ID" ]; then +if [ -z "$HUB_CHAIN_ID" ]; then echo "HUB_CHAIN_ID is not set, using 'dymension_100-1'" HUB_CHAIN_ID="dymension_100-1" fi @@ -21,7 +21,7 @@ DENOM_METADATA_PATH="$HOME/.rollapp_evm/init/denommetadata.json" GENESIS_ACCOUNTS_PATH="$HOME/.rollapp_evm/init/genesis_accounts.json" set -x -#Register rollapp +#Register rollapp dymd tx rollapp create-rollapp "$ROLLAPP_CHAIN_ID" "$MAX_SEQUENCERS" '{"Addresses":[]}' \ "$DENOM_METADATA_PATH" \ --genesis-accounts-path "$GENESIS_ACCOUNTS_PATH" \ @@ -31,4 +31,4 @@ dymd tx rollapp create-rollapp "$ROLLAPP_CHAIN_ID" "$MAX_SEQUENCERS" '{"Addresse --fees 1dym \ --node ${HUB_RPC_URL} \ --chain-id ${HUB_CHAIN_ID} -set +x \ No newline at end of file +set +x