[Feature]: Create a function to buy from outside the contract. #7
Labels
Issue:feature
issue is created for new feature request
Type:Easy
Pr is accepted with difficulty level as easy
So, what is it about?
Create a function with appropriate modifiers so that the user can buy some assets from outside the contract (suppose from a shop) .
Input : (thing to be bought(string)(ex: house), uint amt(the cost of that product))
Note: Accordingly update the cash and asset of the user.
Code of Conduct
The text was updated successfully, but these errors were encountered: