Skip to content

Instantly share code, notes, and snippets.

@izqui
Last active February 7, 2017 20:32
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 izqui/d7bf0233e3e9ef075f4f973a1f6932d8 to your computer and use it in GitHub Desktop.
Save izqui/d7bf0233e3e9ef075f4f973a1f6932d8 to your computer and use it in GitHub Desktop.
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