Skip to content

FredCoen/nft-tutorial

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published