Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

40 lines (23 loc) · 1.14 KB

Deif's Homemade Brooches Contracts

Main

Build

forge build

Test

forge test

Deploy

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

Troubleshooting

Test contracts are too large

You need to update foundry to a later build. This error is suppressed in later versions for test contracts.

Deploy script transaction failures

--slow is necessary to stop all tx being sent and being mined out of order.

Deploy script --ffi checks failed

Ensure you have installed the latest git and foundry versions and have followed the steps outlined by OpenZeppelin