Hardhat
Getting setup with Hardhat
Setting up your environment
Create a new directory and navigate to it, and create a new project with npm init
.
For this example, we'll use HardHat to compile our contracts.
Now we can install the v1 Core contracts, so that we can inherit what we need to create a new Pharo.
Now we can create a new Hardhat config file in our environment, which can help us configure the compilation and testing processes for our contracts.
Setting up Hardhat solidity version
For this example, we'll need to change ./hardhat.config.js to include the appropriate solidity version for compilling the Pharo core v1 contracts.
Compiling Your Contract
We can compile our contracts with npx hardhat compile
Last updated
Was this helpful?