Skip to content

Instantly share code, notes, and snippets.

@TehilaFavourite
Created May 12, 2023 22:05
Show Gist options
  • Save TehilaFavourite/0eaad3513d4a61d8d363e18fec740e86 to your computer and use it in GitHub Desktop.
Save TehilaFavourite/0eaad3513d4a61d8d363e18fec740e86 to your computer and use it in GitHub Desktop.
// 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