Skip to content

Commit

Permalink
Check for an empty string when retrieving factory code
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Dec 11, 2023
1 parent d2a8e6d commit ece6b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/validate_new_chain_request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ factory_code=$(curl "$rpc_url" --location --header \
if jq -e . >/dev/null 2>&1 <<< "$factory_code"; then
factory_code=$(jq -r '.result' <<< "$factory_code")

if [ "$factory_code" != "0x" ]; then
if [ "$factory_code" != "0x" ] && [ "$factory_code" != "" ]; then
echo "COMMENT_OUTPUT=$FACTORY_ALREADY_DEPLOYED_ERR_MSG" >> $GITHUB_ENV
exit 1
fi
Expand Down

0 comments on commit ece6b79

Please sign in to comment.