Interacting with the frontend

To test the frontend, we need the following:

Once these are set up, entering the number of tokens and clicking on the button will trigger the MetaMask confirmation window to open, allowing the user to confirm the sale.

While the frontend waits for the associated Sell event to be emitted, the page will display a loading message. After 15-30 seconds, the page should re-render and display the updated token balance.

And that's it! Our ICO frontend is now fully functional, albeit in the form of a locally-hosted web page. To take our project to its logical conclusion, the next step would be to push the frontend to a publicly-accessible server, rather than having it running only locally. This is left as a further exercise to the reader.