Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.02 KB

This project corresponds to the tutorial Creating an NFT with solmate and foundry from the Foundry Book and includes the implementation of a basic Opensea compatible NFT using the foundry framework to test and deploy your contract. Furthermore it offers an implementation using both Solmate's gas optimised ERC721 library as well as Open Zeppelin's ERC721 library.

Run tests:

forge test

Compare gas costs between OpenZeppelin and Solmate library

forge test --gas-report

Deployment:

Set the following environment variables

export RPC_URL=<Your RPC endpoint>
export PRIVATE_KEY=<Your wallets private key>
npm run deploy <constructor-args>

Send transaction:

npm run send <contractAddress> <functionSignature> <args>