Assignment Smart Contract Events

Published by Mario Oettler on

Last Updated on 20. March 2023 by Martin Schuster

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:

https://blockchain-academy.hs-mittweida.de/wp-content/uploads/2021/04/logo_bcam_rgb_gross.png

Welcome

Blockchain Academy

Continue with credential

No account yet?

Powered by Hidy

Register with Hidy


Register
Sign in

We need the following credential to register:

please select:

To create a new account, we need the following data from you:

We would appreciate the following additional information from you for the creation of your account:

Welcome

Blockchain Academy

Continue with credential

Already have an account?

Powered by Hidy

Sign in with Hidy


Register
Sign in

We need the following credential to log in:

please select: