comments
. It allows any user to leave a comment on your Dapp web page. However, it is important to notice the price field and the addComment()
function. The user must pay the price
amount of OETH to YOU in order to leave a comment on your page!reload()
function in the JavaScript loads data from the blockchain contract and populates them on the HTML page. Pay attention to the instance.addComment()
function. It takes a user comment from the web form and sends it to the contract in a transaction. In the transaction, the user pays price OETH to the contract in addition to gas fees to the network.