Skip to content

Commit

Permalink
test exit instead of return
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Aug 14, 2024
1 parent 51a202b commit 6151dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/scripts/ci/find_slither_report_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ openai_result=$(echo '{
-d @-
)

# TODO change me to != 200
# throw error openai_result when is not 200
if [ "$openai_result" != '200' ]; then
if [ "$openai_result" == '200' ]; then
echo "::error::OpenAI API call failed with status $openai_result: $(cat prompt_response.json)"
exit 1
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ contract ZKSyncAutomationRegistry2_3 is ZKSyncAutomationRegistryBase2_3, OCR2Abs
Chainable(address(logicA))
{}

string public stefan;

/**
* @notice holds the variables used in the transmit function, necessary to avoid stack too deep errors
*/
Expand Down

0 comments on commit 6151dbb

Please sign in to comment.