PayableMint Trait
So far, our mint()
function is quite generic, giving freedom to a caller to mint any token, but at the same time not allowing insight into which tokens have already been minted. In this section we will more clearly define mint()
, and add several utility functions commonly found in popular NFT projects, that will make this example contract more suitable for production release.