Skip to content

Commit

Permalink
Merge branch 'main' into contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
feltroidprime committed Aug 6, 2024
2 parents 47e8eab + dac4311 commit 418a3f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cairo/contracts/base/target/CACHEDIR.TAG
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by scarb.
# For information about cache directory tags see https://bford.info/cachedir/
14 changes: 14 additions & 0 deletions tools/starknet/groth16_contract_generator/check_contract_class.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import json


def check_contract_class(path: str) -> bool:
with open(path, "r") as f:
contract_class = json.load(f)
print(len(contract_class["sierra_program"]))
return True


if __name__ == "__main__":
check_contract_class(
"src/cairo/target/dev/garaga_contracts_Groth16VerifierBN254.contract_class.json"
)

0 comments on commit 418a3f7

Please sign in to comment.