Assignment Smart Contract Events

Published by Mario Oettler on

Write a Smart Contract with the public function setPrice(uint256 newPrice). In this function the event priceSet should be emitted. It should pass the address of the message sender and the new price.

Write a JavaScript function that calls the function setPrice in the Smart Contract above and returns the event to the console.

Categories: