Skip to content

Commit

Permalink
Better Release
Browse files Browse the repository at this point in the history
This patch adds verification to the release to try to make verification easier, even if it's submitted manually.
  • Loading branch information
hayesgm committed Mar 16, 2024
1 parent 1a7fa52 commit c58be2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Prepare Release
run: |
export RPC_URL=$(echo $deployer_config | jq ".$network.rpc_url")
export CODE_JAR=$(echo $deployer_config | jq ".$network.code_jar")
export RPC_URL=$(echo $deployer_config | jq -r ".$network.rpc_url")
export CODE_JAR=$(echo $deployer_config | jq -r ".$network.code_jar")
script/prepare-release.sh
env:
deployer_config: ${{ secrets.deployer_config }}
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fs_permissions = [
{ access = "read", path = "./.release-tmp"}
]

bytecode_hash = "none"
ir=true
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
2 changes: 1 addition & 1 deletion script/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -z "$body" ]; then
fi

sleuth_address="$(forge script --rpc-url="$RPC_URL" --json --silent script/Sleuth.s.sol:Prepare | tee | jq -r '.returns."0".value')"
forge verify-contract --show-standard-json-input 0x0000000000000000000000000000000000000000 src/Sleuth.:Sleuth > release/sleuth-verify.json
forge verify-contract --show-standard-json-input 0x0000000000000000000000000000000000000000 src/Sleuth.sol:Sleuth > release/sleuth-verify.json

echo "title=$title"
echo "body=$body"
Expand Down

0 comments on commit c58be2f

Please sign in to comment.