Time to set up our dApp to actually mint an NFT when the buy button is clicked.
.mint
is called on our connectedContract
with an object containing a value
property. The value property is the NFTs cost in gwei.
Then to polish everything up, we’ll add a loading state, and link the user to the transaction on Etherscan using useToast