Skip to content

Commit

Permalink
fix slither
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 16, 2024
1 parent dd1c9d9 commit 2e40f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

rm -rf abi && mkdir -p abi/examples
rm -rf abi && mkdir -p abi/examples abi/omnichain
rm -rf typescript-types && mkdir typescript-types

for dir in ./examples/*/ ./omnichain/*/; do
subdir=$(echo $dir | cut -d'/' -f2)

cd $dir && yarn && npx hardhat compile --force && cp -r artifacts/contracts/* ../../abi/examples/ && cd ../../;
cd $dir && yarn && npx hardhat compile --force && cp -r artifacts/contracts/* ../../abi/$subdir/ && cd ../../;
done

find ./abi/ -name '*.dbg.json' -exec rm {} \;
find ./abi/ -name '*.dbg.json' -exec rm {} \;

0 comments on commit 2e40f17

Please sign in to comment.