Last active
February 7, 2017 20:32
-
-
Save izqui/d7bf0233e3e9ef075f4f973a1f6932d8 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
library EventEmitterLib { | |
function emit(string s) { | |
Emit(s); | |
} | |
event Emit(string s); | |
} | |
contract EventEmitterContract { | |
using EventEmitterLib for string; | |
function emit(string s) { | |
s.emit(); | |
} | |
event Emit(string s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment