Skip to content

Commit 7fa9e23

Browse files
authored
[r3.3] rpc: fix eth_simulateV1 no contract logs with traceTransfers (#18000)
Cherry-pick #17996
1 parent de8051e commit 7fa9e23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rpc/jsonrpc/eth_simulation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ func (s *simulator) simulateBlock(
460460
if s.traceTransfers {
461461
// Transfers must be recorded as if they were logs: use a tracer that records all logs and ether transfers
462462
vmConfig.Tracer = tracer.Hooks()
463+
intraBlockState.SetHooks(vmConfig.Tracer)
463464
}
464465

465466
// Apply pre-transaction state modifications before block execution.

0 commit comments

Comments
 (0)