Initialize the contracts subdirectory
Navigate to the contracts subdirectory:
Initialize a project with
sforge
:
This command will:
Create the contract project structure (e.g.,
src/
,test/
,foundry.toml
).Automatically install the Forge standard library (
forge-std
) as a submodule.Remove the
.github
workflow folder (not required)
Edit the
.gitignore
file to be the following:
Delete the default contract, test and script files (
Counter.sol
andCounter.t.sol
andCounter.s.sol
) and replace them with theirWalnut
counterparts (Walnut.sol
,Walnut.t.sol and Walnut.s.sol ):
These files are empty for now, but we will add to them as we go along.
Last updated