The HasNFTTransferApproval modifier is used by the addItemToMarket function which is used to add an item to the market.
It is not necessary to use the HasNFTTransferApproval modifier on the buyItem and finalizeBid functions because it is already used on the addItemToMarket function. If token approval is removed then the buyItem and finalizeBid functions will revert. The HasNFTTransferApproval adds gas to functions.
The
HasNFTTransferApproval
modifier is used by theaddItemToMarket
function which is used to add an item to the market.It is not necessary to use the
HasNFTTransferApproval
modifier on thebuyItem
andfinalizeBid
functions because it is already used on theaddItemToMarket
function. If token approval is removed then thebuyItem
andfinalizeBid
functions will revert. TheHasNFTTransferApproval
adds gas to functions.