Implement configurable chain ID for faucet

This commit is contained in:
Nabarun 2024-08-10 12:31:52 +05:30
parent 9df6a71145
commit cea625c54c
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[upstream]
rpcEndpoint = "REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT"
chainId = "laconic_9000-1"
chainId = "REPLACE_WITH_CERC_LACONICD_CHAIN_ID"
denom = "alnt"
prefix = "laconic"
gasPrice = "1"

View File

@ -23,6 +23,7 @@ FAUCET_CONFIG=$(echo "$config_template" | \
sed -E "s|REPLACE_WITH_CERC_FAUCET_KEY|${CERC_FAUCET_KEY}|g; \
s|REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT|${CERC_LACONICD_RPC_ENDPOINT}|g; \
s|REPLACE_WITH_CERC_TRANSFER_AMOUNT|${CERC_TRANSFER_AMOUNT}|g; \
s|REPLACE_WITH_CERC_LACONICD_CHAIN_ID|${CERC_LACONICD_CHAIN_ID}|g; \
s|REPLACE_WITH_CERC_PERIOD_TRANSFER_LIMIT|${CERC_PERIOD_TRANSFER_LIMIT}|; ")
echo "$FAUCET_CONFIG" > $target_config