Skip to content

Commit

Permalink
Merge pull request #299 from safe-global/fix/action-factory-code-check
Browse files Browse the repository at this point in the history
Check for an empty string when retrieving factory code
  • Loading branch information
mmv08 authored Dec 12, 2023
2 parents d2a8e6d + ece6b79 commit 15173ca
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 15173ca

Please sign in to comment.