mirror of
https://github.com/vacp2p/rln-contract.git
synced 2026-01-09 14:48:00 -05:00
e13af692f7145d9ff33729f3c941e2287e6920d9
There was a breaking change introduced in `forge-std` at https://github.com/foundry-rs/forge-std/pull/407 which breaks compilation of `Rln.t.sol` with `forge-std@v1.6.0`. This commit updates the dependency to v1.6.0 and adjusts the test source such that it successfully compiles. Another way to go about this would've been to just stick with `v1.5.6.` and ensuring installation of that version. However, I've decided to update the dependency to the latest stable version instead.
Hardhat Project for rln-contract
Requirements
The following will need to be installed in order to use this repo. Please follow the links and instructions.
- Git
- You'll know you've done it right if you can run
git --version
- You'll know you've done it right if you can run
- Foundry / Foundryup
- This will install
forge,cast, andanvil - You can test you've installed them right by running
forge --versionand get an output like:forge 0.2.0 (92f8951 2022-08-06T00:09:32.96582Z) - To get the latest of each, just run
foundryup
- This will install
- Yarn
Compilation
yarn compile
Testing with Hardhat
yarn test:hardhat
Testing with Foundry
yarn test:foundry
Deploying
Locally
- To deploy on a local node, first start the local node and then run the deploy script
yarn node
yarn deploy:localhost
Sepolia
- To deploy to an target network (like Sepolia), use the name as mentioned in the Hardhat config file.
yarn deploy:sepolia
# You may verify the contract using
yarn verify:sepolia # Ensure you have set ETHERSCAN_API_KEY in your env
References
For more information, see https://hardhat.org/hardhat-runner/docs/guides/project-setup
License
Dual-licensed under MIT or Apache 2.0, refer to LICENSE-MIT or LICENSE-APACHE for more information.
Description
Languages
Shell
90.2%
Ruby
9.8%