Skip to content

A smart contract based shop accepting a specific ERC20 token as payment

License

Notifications You must be signed in to change notification settings

picklesolutions/ERC20Shop

Repository files navigation

ERC20Shop

The goal of this project is to create a smart contract based shop accepting a specific ERC20 token as payment. A simple use case for this project is a virtual shop for a game, selling items to the players.

This project contains a basic ERC20 token called TestToken. This token is compliant to the ERC20 but has an additional function called buyFromShop().

The buyFromShop() will call a buy() function inside the shop contract.

Usage

A complete example can be found in the ERC20Shop.test.js file in the test folder.

Releases

No releases published

Packages

No packages published