You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
action is not arbitrary: it can take only three different values: "swapped", "added", and "removed".
This means that, every time these events are emitted, some more gas is consumed to send the string along, and an event listener has to match the action field against these three values to really know what happened. It seems that we could instead use different events for different actions. E.g.:
Several events contain a string field which encodes the actual reason of the event emission, such as
action
inKeysManager
:action
is not arbitrary: it can take only three different values: "swapped", "added", and "removed".This means that, every time these events are emitted, some more gas is consumed to send the string along, and an event listener has to match the action field against these three values to really know what happened. It seems that we could instead use different events for different actions. E.g.:
The text was updated successfully, but these errors were encountered: