Keep first URL from rpc endpoints in network JSON

This commit is contained in:
IshaVenikar 2025-05-28 09:40:16 +05:30
parent f5b7a96145
commit 45cf566c30
2 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,8 @@
{
"chainId": "laconic-mainnet",
"chainName": "Laconicd",
"rpc": "http://localhost:26657",
"rest": "https://localhost:1317",
"rpc": "",
"rest": "",
"bip44": {
"coinType": 118
},

View File

@ -64,8 +64,13 @@
- name: Update network.json with environment endpoints
shell: |
jq --arg rpc "$NEXT_PUBLIC_NODE_ADDRESSES" --arg rest "$NODE_REST_ENDPOINT" \
RPC_VALUE=$(echo '{{ next_public_node_addresses }}' | jq -r '.[0]')
echo "Using RPC value: $RPC_VALUE"
jq --arg rpc "$RPC_VALUE" --arg rest "{{ node_rest_endpoint }}" \
'.rpc = $rpc | .rest = $rest' "{{ lookup('env', 'NETWORK_JSON_PATH') }}" > "{{ temp_network_json }}"
args:
executable: /bin/bash
- name: Copy modified network JSON to deployment config directory
copy: