Comment on page
How to Recreate
A tutorial on how to recreate the OpenZeppelin tests locally using a Thor Solo node.
git clone [email protected]:OpenZeppelin/openzeppelin-contracts.git
cd openzeppelin-contracts
npm install @vechain/[email protected] --save-exact
npm install @vechain/[email protected] --save-exact
npm install @vechain/[email protected] --save-exact
Add the following to your hardhat config
require("@vechain/hardhat-vechain");
require("@vechain/hardhat-web3");
Add the vechain network settings
vechain: {
url: "http://127.0.0.1:8669",
accounts: {
mnemonic: "denial kitchen pet squirrel other broom bar gas better priority spoil cross",
count: 10,
},
restful: true,
gas: 10000000,
delegate: {
url: "hello",
signer : "world"
},
},
Assuming you have cloned OpenZeppelin and are running thor locally in solo mode we can now move on to running the OpenZeppelin tests. First navigate to the appropriate directory.
cd openzeppelin-contracts
npx hardhat test --network vechain test/access/AccessControlEnumerable.test.js
npx hardhat test --network vechain
After running a given number of tests a
*.csv
file with the results of the tests will appear under openzeppelin-contracts folder.Last modified 1mo ago