Skip to content

Commit

Permalink
Accept arrays of structs as inputs and outputs (#42)
Browse files Browse the repository at this point in the history
* Improved error message when a wrong number of arguments is given as input

* Parse negative hexadecimal outputs to BigInt (#44)

* Adapted struct array input and output

Co-authored-by: Chris Lexmond <[email protected]>
  • Loading branch information
dribeiro-ShardLabs and clexmond authored Jan 24, 2022
1 parent 42c22d9 commit 11d6da6
Show file tree
Hide file tree
Showing 7 changed files with 879 additions and 1,361 deletions.
44 changes: 31 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ aliases:
steps:
- restore_cache:
name: "Restore venv Cache"
key: venv-cache-v1-{{ arch }}
key: venv-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
- &save_venv_cache
###################################################
# Save only if the test name is "test-venv-tests" #
Expand All @@ -101,24 +101,42 @@ aliases:
steps:
- save_cache:
name: "Save venv Cache"
key: venv-cache-v1-{{ arch }}
key: venv-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
paths:
- /Users/distiller/project/my-venv
- /home/circleci/project/my-venv

- &restore_cairo_cache
- restore_cache:
name: "Restore cairo-lang Cache"
key: cairo-lang-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
#################################################################
# Try to restore only if the test name is not "test-venv-tests" #
#################################################################
- when:
condition:
and:
- not:
equal: [ test-venv-tests, << parameters.test-name >> ]
steps:
- restore_cache:
name: "Restore cairo-lang Cache"
key: cairo-lang-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
- &save_cairo_cache
- save_cache:
name: "Save cairo-lang Cache"
key: cairo-lang-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
paths:
- /usr/python3.8/dist-packages/cairo-lang
- /usr/python3.9/dist-packages/cairo-lang
- /usr/local/bin/starknet
- /usr/local/bin/starknet-compile
##############################################################
# Try to save only if the test name is not "test-venv-tests" #
##############################################################
- when:
condition:
and:
- not:
equal: [ test-venv-tests, << parameters.test-name >> ]
steps:
- save_cache:
name: "Save cairo-lang Cache"
key: cairo-lang-cache-{{ arch }}-v1-{{ checksum "/tmp/cairo-lang-version" }}
paths:
- /usr/python3.8/dist-packages/cairo-lang
- /usr/python3.9/dist-packages/cairo-lang
- /usr/local/bin/starknet
- /usr/local/bin/starknet-compile

- &restore_devnet_cache
- restore_cache:
Expand Down
Loading

0 comments on commit 11d6da6

Please sign in to comment.