-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from crytic/dev-fix-import-0.0.2
Fix import 0.0.2
- Loading branch information
Showing
4 changed files
with
54 additions
and
21 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
DIR=$(mktemp -d) | ||
|
||
cp tests/contract.sol "$DIR" | ||
cd "$DIR" || exit 255 | ||
|
||
crytic-compile contract.sol --export-format archive | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Standard test failed" | ||
exit 255 | ||
fi | ||
|
||
crytic-compile crytic-export/contract.sol_export_archive.json | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Standard test failed" | ||
exit 255 | ||
fi | ||
|
||
|
||
crytic-compile contract.sol --export-zip test.zip | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Standard test failed" | ||
exit 255 | ||
fi | ||
|
||
crytic-compile test.zip | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Standard test failed" | ||
exit 255 | ||
fi |