Skip to content

Commit

Permalink
chore: Update aztec-spartan.sh script (#11228)
Browse files Browse the repository at this point in the history
Updated with Unhinged Unicorn information
  • Loading branch information
aminsammara authored Jan 15, 2025
1 parent 2f05dc0 commit 52b3a87
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spartan/releases/testnet/aztec-spartan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ get_node_info() {
echo -e "${BLUE}Fetching node info...${NC}"
CMD="get-node-info --node-url ${BOOTNODE_URL} --json"
# TODO: use the correct (corresponding) image
# Can't do it today because `release/troll-turtle` doesn't support --json flag
# Can't do it today because `release/unhinged-unicorn` doesn't support --json flag
NODE_INFO=$(curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","method":"node_getNodeInfo","params":[],"id":1}' -s ${BOOTNODE_URL})

# Extract the relevant fields
Expand Down Expand Up @@ -165,15 +165,15 @@ configure_environment() {
if [ -n "$NETWORK" ]; then
NETWORK="$NETWORK"
else
read -p "Network [troll-turtle]: " NETWORK
NETWORK=${NETWORK:-troll-turtle}
read -p "Network [unhinged-unicorn]: " NETWORK
NETWORK=${NETWORK:-unhinged-unicorn}
fi

# if the network is `troll-turtle`
if [ "$NETWORK" = "troll-turtle" ]; then
BOOTNODE_URL="${BOOTNODE_URL:-http://34.82.108.83:8080}"
ETHEREUM_HOST="${ETHEREUM_HOST:-http://34.82.53.127:8545}"
IMAGE="${IMAGE:-aztecprotocol/aztec:troll-turtle}"
# if the network is `unhinged-unicorn`
if [ "$NETWORK" = "unhinged-unicorn" ]; then
BOOTNODE_URL="${BOOTNODE_URL:-http://34.169.19.201:8080}"
ETHEREUM_HOST="${ETHEREUM_HOST:-http://34.82.214.254:8545}"
IMAGE="${IMAGE:-aztecprotocol/aztec:unhinged-unicorn}"
else
# unknown network
echo -e "${RED}Unknown network: $NETWORK${NC}"
Expand Down Expand Up @@ -220,7 +220,7 @@ configure_environment() {
COINBASE="$CLI_COINBASE"
else
while true; do
read -p "COINBASE (default: 0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa): " COINBASE
read -p "Validator Address (default: 0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa): " COINBASE
COINBASE=${COINBASE:-0xbaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}
if [[ "$COINBASE" =~ ^0x[a-fA-F0-9]{40}$ ]]; then
break
Expand Down

0 comments on commit 52b3a87

Please sign in to comment.