Created
May 12, 2023 22:05
-
-
Save TehilaFavourite/0eaad3513d4a61d8d363e18fec740e86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.0; | |
contract EventExample { | |
event NewValue(uint256 indexed newValue); | |
uint256 public value; | |
function updateValue(uint256 _newValue) public { | |
value = _newValue; | |
emit NewValue(_newValue); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment