From 0476547f2b2dbb9275139dcb0f659af79ecbe89d Mon Sep 17 00:00:00 2001 From: Eric Nordelo Date: Wed, 6 Mar 2024 18:26:16 +0100 Subject: [PATCH] fix: workflow --- .github/workflows/prepare-release.yml | 2 +- scripts/get_hashes_page.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 5ac749e6c..37451e21e 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -43,7 +43,7 @@ jobs: - name: Update presets page run: | - class_hash get --json | sed -e '1,4d' | python3 scripts/get_hashes_page.py v$SCARB_VERSION \ + class_hash get --json | sed -e '1,4d' | python3 scripts/get_hashes_page.py $SCARB_VERSION \ > ./docs/modules/ROOT/pages/utils/_class_hashes.adoc - name: Auto-commit changes diff --git a/scripts/get_hashes_page.py b/scripts/get_hashes_page.py index 7f5ebccf8..2cc1b0d96 100644 --- a/scripts/get_hashes_page.py +++ b/scripts/get_hashes_page.py @@ -18,6 +18,7 @@ def generate_doc_file(cmp_version, contracts): https://crates.io/crates/cairo-lang-compiler/{cmp_version}[cairo {cmp_version}] """ hashes = "// Class Hashes\n" + contracts['contracts'].sort(key=lambda x: x['name']) for contract in contracts['contracts']: # The [13:] is to remove the "openzeppelin_" prefix from the contract name hashes += f":{contract['name'][13:]}-class-hash: {normalize_len(contract['sierra'])}\n"