Skip to content

Conversation

@tikenjah
Copy link

@tikenjah tikenjah commented Nov 24, 2025

Note

Harden deploy script with strict mode, improved logging, robust forge execution, and reliable adapter address extraction via jq.

  • Scripts:
    • deploy/scripts/deploy_adapter.sh:
      • Add set -euo pipefail and structured logging of env-based deploy args.
      • Switch to capturing full Forge JSON output; pass explicit deployAdapter(address,address,address,address) signature with quoted args.
      • Add error handling for forge execution and JSON parsing.
      • Extract adapter address via jq .returns.adapter.value and print success summary.

Written by Cursor Bugbot for commit 965e94f. This will update automatically on new commits. Configure here.

# Output the captured error message if available
echo "${DEPLOY_OUTPUT}" >&2
exit 1
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Error check unreachable due to set -e

The error check on line 36 is unreachable because set -e on line 6 causes the script to exit immediately if the forge script command fails. When the command in the command substitution returns a non-zero exit status, the script terminates before reaching the if [ $? -ne 0 ] check, making the error handling code ineffective.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant