Rollback removes logs from the reverted execution scope.
LET’S PICTURE IT
Notes made during an abandoned attempt are discarded with that attempt.
SEE IT FOR YOURSELF
From an emitted Transfer event to a receipt logStep 1 / 4
A token implementation may update balances and emit its standard Transfer event. State and the emitted record are related but distinct.
A token implementation may update balances and emit its standard Transfer event. State and the emitted record are related but distinct.A non-anonymous Transfer event uses the full thirty-two-byte Keccak-256 signature digest as topic zero, not a four-byte function selector.In the common ERC-20 shape, from and to occupy topics one and two. The raw value is a thirty-two-byte data word. Other standards can index fields differently.An application can decode receipt logs under the correct ABI. A matching signature does not establish that an unknown emitter is an honest token.
Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.
Track the emitting scope
A contract may emit a log before a later condition fails. Reverting that call scope removes its state changes and the logs created within that reverted scope.
Follow propagation to the top
If failure propagates through the entire transaction execution, none of its execution logs survive as successful receipt logs. Consumed gas is still charged under fee rules.
Handle caught child failures
A caller can catch a child failure and continue. Logs from the reverted child disappear, while the successful caller can retain its own logs if its surrounding execution succeeds.
Separate debugging evidence
A trace or local simulation may show a LOG instruction attempted before rollback. That debugging observation is different from a surviving on-chain receipt log.
Inspect the example
Caller emits A
Child emits B, then reverts
Caller catches failure, emits C, and succeeds
Surviving logs: A, C
Discarded log: B
A simplified call sequence; the outcome depends on the caller actually catching and successfully finishing.