From 2e40f177d626d1020ee3d61df6039f2050ed6834 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 16 Sep 2024 23:54:35 +0800 Subject: [PATCH] fix slither --- scripts/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index f4b5dffb..56f30889 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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 {} \; \ No newline at end of file