Purchase NFT with ERC20 tokens

Build a classic NFT that can only be minted by paying with a particular ERC20 token.

Token Contract on Polygon zkEVM Testnet - https://testnet-zkevm.polygonscan.com/address/0xa340bb99457D4E676824da9F20bD9df1684B1529 NFT Contract on Polygon zkEVM Testnet - https://testnet-zkevm.polygonscan.com/address/0x8F2505b1Aa4b22F746Ea832C79cF34dC39dAC41b

Documentation

https://book.getfoundry.sh/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help