From c58be2f2da11a03f3ad7666d8230f72e62c3d704 Mon Sep 17 00:00:00 2001 From: Geoffrey Hayes Date: Sat, 16 Mar 2024 14:51:54 -0700 Subject: [PATCH] Better Release This patch adds verification to the release to try to make verification easier, even if it's submitted manually. --- .github/workflows/prepare-release.yml | 4 ++-- foundry.toml | 2 +- script/prepare-release.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 2ef9915..6a78ca6 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -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 }} diff --git a/foundry.toml b/foundry.toml index f301d9e..e485807 100644 --- a/foundry.toml +++ b/foundry.toml @@ -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 \ No newline at end of file diff --git a/script/prepare-release.sh b/script/prepare-release.sh index 02b6249..51b0f8e 100755 --- a/script/prepare-release.sh +++ b/script/prepare-release.sh @@ -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"