-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix visibility, typing, docs * Remove exports from index (fix of previous) * Use contract factory * Export Starknet types * Fix config file replacement in test * Bump version * Fix typo in README.md
- Loading branch information
Showing
16 changed files
with
204 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,23 @@ git clone [email protected]:Shard-Labs/starknet-hardhat-example.git | |
cd starknet-hardhat-example | ||
npm install | ||
|
||
CONFIG_FILE_NAME="hardhat.config.ts" | ||
|
||
TOTAL=0 | ||
SUCCESS=0 | ||
for TEST_CASE in ../test/*; do | ||
CONFIG_FILE="$TEST_CASE/hardhat.config.js" | ||
if [ ! -f "$CONFIG_FILE" ]; then | ||
echo "Skipping; no config file provided" | ||
TOTAL=$((TOTAL + 1)) | ||
TEST_NAME=$(basename $TEST_CASE) | ||
echo "Test $TOTAL) $TEST_NAME" | ||
|
||
CONFIG_FILE_PATH="$TEST_CASE/$CONFIG_FILE_NAME" | ||
if [ ! -f "$CONFIG_FILE_PATH" ]; then | ||
echo "No config file provided!" | ||
continue | ||
fi | ||
/bin/cp "$CONFIG_FILE" hardhat.config.js | ||
|
||
TEST_NAME=$(basename $TEST_CASE) | ||
TOTAL=$((TOTAL + 1)) | ||
echo "Test $TOTAL) $TEST_NAME" | ||
#replace the dummy config (config_file_name) with the one of this test (config_file_path) | ||
/bin/cp "$CONFIG_FILE_PATH" "$CONFIG_FILE_NAME" | ||
|
||
INIT_SCRIPT="$TEST_CASE/init.sh" | ||
if [ -f "$INIT_SCRIPT" ]; then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.