fix for tron

This commit is contained in:
squidbear
2025-03-31 12:58:11 +02:00
parent 86e08f54a9
commit 0a1c490e87
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ for path in $pathlist; do
if [ -n "$2" ]; then
ref="$2"
else
chain_id_response=$(curl --ipv4 -m 1 -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' $RPC_URL)
chain_id_response=$(curl -L --ipv4 -m 1 -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}' $RPC_URL)
if [ $? -eq 0 ]; then
chain_id=$(echo "$chain_id_response" | jq -r '.result' 2>/dev/null)