Consensys / surya

A set of utilities for exploring Solidity contracts
Apache License 2.0
1.07k stars 118 forks source link

distinguish emit Event from Function Call - fixes #105 #144

Closed tintinweb closed 4 years ago

tintinweb commented 4 years ago

Events are currently shown as normal function nodes. This PR aims to visually distinguish events from functions. The style can be defined with the colorscheme. This example uses dotted lines for events (default). Feel free to change this before merging :)

example: MatchWithOrders is an event (emit MatchWithOrders(...))

image

I've also added a small fix for parserHelpers to make the check more robust.

GNSPS commented 4 years ago

This LEGTM! 😊 🙏 Thank you, Martin!