-
Notifications
You must be signed in to change notification settings - Fork 438
Description
The note
modifier often leaves something to be desired--for example, sometimes the most interesting and/or useful information to log is an updated storage value, not the function arguments. Other times, an event might be more user-friendly if certain logged values were not indexed (or vice-versa)...note
has no way to specify which argument values should or should not be logged. Finally, note
logs a fixed number of arguments and a fixed amount of calldata
, but obviously this one-size-fits-all solution will generally be suboptimal.
An example: it would be nice if the event for Pot.drip()
logged the latest chi
value; c.f. the Tweet below.
https://twitter.com/LefterisJP/status/1230168954590695425
More generally, it would be nice to replace (or augment) note
with custom events.