Skip to content

Instantly share code, notes, and snippets.

@ac12644
Last active August 14, 2022 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ac12644/8c1007b51b5c23fa7972a20b7ff4202d to your computer and use it in GitHub Desktop.
Save ac12644/8c1007b51b5c23fa7972a20b7ff4202d to your computer and use it in GitHub Desktop.
// Event declaration
event TokenPurchase(
address indexed purchaser,
address indexed investor,
uint256 value,
uint256 amount
);
// Event emit
emit TokenPurchase(msg.sender, _investor, msg.value, tokens);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment