The buy function is a function for purchasing NFTs that are on sale.
The only template that can use the buy function is product template.
buy
Also, the UI should be such that it can only be run on NFTs that are in the selling state.
Last updated 2 years ago