Skip to content

Commit

Permalink
Change path due to recent libs change (#3620)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheran-senthil authored Aug 3, 2022
1 parent 216bf25 commit c3a0149
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dev-tools/startup/build-audius-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

set -e

cat > strip_abi.js <<EOF
cat >strip_abi.js <<EOF
const fs = require("fs")
const abi = JSON.parse(fs.readFileSync(0, "utf-8"));
console.log(JSON.stringify({ contractName: abi.contractName, abi: abi.abi }));
process.stdout.write(JSON.stringify({ contractName: abi.contractName, abi: abi.abi }, null, 2));
EOF

for abi in ../data-contracts/ABIs/*; do
node strip_abi.js < "$abi" > data-contracts/ABIs/$(basename "$abi")
node strip_abi.js <"$abi" >src/data-contracts/ABIs/$(basename "$abi")
done

for abi in ../eth-contracts/ABIs/*; do
node strip_abi.js < "$abi" > eth-contracts/ABIs/$(basename "$abi")
node strip_abi.js <"$abi" >src/eth-contracts/ABIs/$(basename "$abi")
done

cp scripts/AudiusClaimDistributor.json scripts/Wormhole.json eth-contracts/ABIs/
cp scripts/AudiusClaimDistributor.json scripts/Wormhole.json src/eth-contracts/ABIs/

npx rollup -c -w

0 comments on commit c3a0149

Please sign in to comment.