Download contracts/lib/openzeppelin-contracts/scripts/prepack.sh from UTSCybeR/nftbench: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/openzeppelin-contracts/scripts/prepack.sh
- Command line
-
hf download hf://datasets/UTSCybeR/nftbench/contracts/lib/openzeppelin-contracts/scripts/prepack.sh
-
curl -L -o prepack.sh https://huggingface.co/datasets/UTSCybeR/nftbench/resolve/main/contracts/lib/openzeppelin-contracts/scripts/prepack.sh
478 Bytes
| set -euo pipefail | |
| shopt -s globstar | |
| # cross platform `mkdir -p` | |
| mkdirp() { | |
| node -e "fs.mkdirSync('$1', { recursive: true })" | |
| } | |
| # cd to the root of the repo | |
| cd "$(git rev-parse --show-toplevel)" | |
| npm run clean | |
| env COMPILE_MODE=production npm run compile | |
| mkdirp contracts/build/contracts | |
| cp artifacts/contracts/**/*.json contracts/build/contracts | |
| rm contracts/build/contracts/*.dbg.json | |
| node scripts/remove-ignored-artifacts.js | |
| cp README.md contracts/ | |