Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix init bash scripts for denom metadata and genesis accounts #133

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/settlement/generate_denom_metadata.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions scripts/settlement/register_rollapp_to_hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" \
Expand All @@ -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
set +x
Loading