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
In ethexe/contracts/src/Mirror.sol, the function valueClaimed attempts to transfer tokens to a given destination. If value == 0, no transfer happens, but the function still emits the event ValueClaimed.
Possible Solution
If value is 0, emit a different event. Like ValueClaimAttempted.
Notes
No response
The text was updated successfully, but these errors were encountered:
grishasobol
changed the title
Emitting an event for ValueClaimed when value == 0 is confusingethexe: emitting an event for ValueClaimed when value == 0 is confusing
Aug 22, 2024
Problem to Solve
In
ethexe/contracts/src/Mirror.sol
, the functionvalueClaimed
attempts to transfer tokens to a given destination. If value == 0, no transfer happens, but the function still emits the eventValueClaimed
.Possible Solution
If
value
is 0, emit a different event. LikeValueClaimAttempted
.Notes
No response
The text was updated successfully, but these errors were encountered: