t8ntool/file_tracer: proxy OnFaultV2 in writer wrapper

This commit is contained in:
GarmashAlex 2025-10-29 13:26:31 +03:00 committed by GitHub
parent 99923e9f54
commit 182e08af32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,6 +138,15 @@ func (l *fileWritingTracer) hooks() *tracing.Hooks {
l.inner.OnFault(pc, op, gas, cost, scope, depth, err) l.inner.OnFault(pc, op, gas, cost, scope, depth, err)
} }
}, },
OnFaultV2: func(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, depth int, err error) {
if l.inner != nil {
if l.inner.OnFaultV2 != nil {
l.inner.OnFaultV2(pc, op, gas, cost, scope, rData, depth, err)
} else if l.inner.OnFault != nil {
l.inner.OnFault(pc, op, gas, cost, scope, depth, err)
}
}
},
OnSystemCallStart: func() { OnSystemCallStart: func() {
if l.inner != nil && l.inner.OnSystemCallStart != nil { if l.inner != nil && l.inner.OnSystemCallStart != nil {
l.inner.OnSystemCallStart() l.inner.OnSystemCallStart()