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
fix: address Copilot review feedback on event trigger simulation
- Populate raw value unconditionally from parsed event data, even when
token metadata lookup fails. The new schema contract is that value
is always the raw uint256 base-units string; only valueFormatted
depends on knowing decimals. Fixes a regression where tokens not in
the whitelist would silently keep the default value of "0".
- Disambiguate "unknown decimals" from "0 decimals" in the synthetic
Transfer amount path by switching the API to *uint32. Some ERC20
tokens legitimately have 0 decimals; treating 0 as a sentinel for
"unknown, assume 18" would scale them incorrectly. nil now means
unknown (fall back to 18), 0 is honored as a real value (use 1 unit
since fractional amounts are not representable).
- Extract loop ExecutionContext propagation into a testable helper and
add unit tests covering propagation from first iteration with
context, skipping nil/empty iterations, leaving the parent untouched
when no iteration provides context, and graceful handling of nil
parent / empty iteration slice.
0 commit comments