Skip to content

NFT Book Rental smart contract made using the ERC-4907 standard

Notifications You must be signed in to change notification settings

Mantas-M/NFTBookRental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Book Rental

Made using the ERC-4907 standard

Running tests

  • Clone the repository
  • Run npm install
  • Run npx hardhat test

Note: viewAvailableBooks, viewRentedBooks and getOwnedBooks functions can get very expensive as the book list grows. The implementation should be mitigated to use mappings and restrict the amount of books a person can borrow to avoid using arrays and iteration at all to reduce gas costs.

About

NFT Book Rental smart contract made using the ERC-4907 standard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published