Skip to content

Commit

Permalink
feat: update the generate abi script to revert if the .env file is no…
Browse files Browse the repository at this point in the history
…t defined
  • Loading branch information
clauBv23 committed Aug 7, 2024
1 parent 1ff63a4 commit f1d2d4e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion artifacts/generateAbis.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/bin/bash

source .env
export ALCHEMY_API_KEY=$ALCHEMY_API_KEY

if [ -z "$ALCHEMY_API_KEY" ]
then
echo "ALCHEMY_API_KEY is not set on the .env file, exiting..."
exit -1
else
export ALCHEMY_API_KEY=$ALCHEMY_API_KEY
fi


current_dir=$(pwd)
Expand Down

0 comments on commit f1d2d4e

Please sign in to comment.