Skip to content

hmouhtar/ERC20PayableNFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC20PayableNFT

This project is composed of 3 contracts:

  • SampleToken: Basic ERC20 token implementing EIP-2612 permit function.
  • SampleNFT: Basic ERC721 capped token that's only mintable by the owner.
  • SampleMiddleman: A middleman contract that handles minting on the SampleNFT contract. Requires the SampleToken ERC20 as payment. Approves the allowance of SampleToken and mints SampleNFT in a single transaction, thanks to the usage of EIP-2612 permit function.

Sample setup in scripts/deployAndTest.js

To execute the sample setup, run:

npx hardhat run scripts/deployAndTest.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published