diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 44f27c4..2ef9915 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -43,6 +43,6 @@ jobs: - uses: ncipollo/release-action@v1 with: - artifacts: "release/Sleuth.json,release/Sleuth.sol,release/contracts.json,release/sleuth@*" + artifacts: "release/Sleuth.json,release/Sleuth.sol,release/contracts.json,release/sleuth-verify.json,release/sleuth@*" bodyFile: "release/RELEASE.md" allowUpdates: true diff --git a/foundry.toml b/foundry.toml index 1a23e72..f301d9e 100644 --- a/foundry.toml +++ b/foundry.toml @@ -7,4 +7,5 @@ fs_permissions = [ { access = "read", path = "./.release-tmp"} ] +bytecode_hash = "none" # 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 dce979e..02b6249 100755 --- a/script/prepare-release.sh +++ b/script/prepare-release.sh @@ -35,6 +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 echo "title=$title" echo "body=$body"