Created
May 25, 2018 08:47
-
-
Save mattkanwisher/f63801a8028783d54114685d2ca89b4c to your computer and use it in GitHub Desktop.
Emitting events in Solidity to be Indexed
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
pragma solidity ^0.4.0; | |
contract AccountReceipt { | |
event AccountCreated( | |
address indexed _from, | |
bytes32 indexed _id, | |
uint _value | |
); | |
function AccountReceipt(bytes32 _id) public payable { | |
emit AccountCreated(msg.sender, _id, msg.value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment