Skip to content

Commit 0ea7a43

Browse files
committed
Add more contracts to the binary package + OZ contracts included
1 parent abb3502 commit 0ea7a43

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

hardhat.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ module.exports = {
2121
disambiguatePaths: false,
2222
},
2323
dependencyCompiler: {
24-
paths: ["@openzeppelin/contracts/governance/TimelockController.sol"],
24+
paths: [
25+
"@openzeppelin/contracts/governance/TimelockController.sol",
26+
"@openzeppelin/contracts/access/manager/AccessManager.sol",
27+
"@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol",
28+
"@openzeppelin/contracts/token/ERC20/ERC20.sol",
29+
"@openzeppelin/contracts/token/ERC721/ERC721.sol",
30+
],
2531
},
2632
};

scripts/make-npm-package.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ git archive --format tar HEAD README.md contracts/ js/ | tar xv -C $TARGET_DIR
2929

3030
mkdir $TARGET_DIR/build
3131
cp -r artifacts/contracts $TARGET_DIR/build
32+
33+
# Include also @openzeppelin build, so it can be used as verifiable binary
34+
cp -r artifacts/@openzeppelin $TARGET_DIR/build
35+
3236
cp artifacts/build-info/*.json $TARGET_DIR/build/build-info.json
3337

3438
find $TARGET_DIR -name "*.dbg.json" -delete

0 commit comments

Comments
 (0)