forge build
forge test
Uses env vars from a file .env
. Copy and rename .env.sample
and fill in the required variables.
# To load the variables in the .env file
source .env
# To deploy and verify our contract
forge script script/HomemadeBroochNFT.s.sol:DeployBrooches --rpc-url $RPC_URL --broadcast --verify -vvvv --slow --ffi
# To verify
forge script script/HomemadeBroochNFT.s.sol:DeployBrooches --rpc-url $RPC_URL --verify -vvvv --resume
You need to update foundry to a later build. This error is suppressed in later versions for test contracts.
--slow
is necessary to stop all tx being sent and being mined out of order.
Ensure you have installed the latest git and foundry versions and have followed the steps outlined by OpenZeppelin