eth/tracers/logger: also fix md logger

This commit is contained in:
Felix Lange 2024-12-17 12:34:56 +01:00
parent b7abe47ac8
commit 4074c077f4

View file

@ -411,6 +411,7 @@ func NewMarkdownLogger(cfg *Config, writer io.Writer) *mdLogger {
func (t *mdLogger) Hooks() *tracing.Hooks {
return &tracing.Hooks{
OnTxStart: t.OnTxStart,
OnSystemCallStartV2: t.OnTxStart,
OnEnter: t.OnEnter,
OnExit: t.OnExit,
OnOpcode: t.OnOpcode,
@ -421,6 +422,9 @@ func (t *mdLogger) Hooks() *tracing.Hooks {
func (t *mdLogger) OnTxStart(env *tracing.VMContext, tx *types.Transaction, from common.Address) {
t.env = env
}
func (t *mdLogger) OnSystemCallStart(env *tracing.VMContext) {
t.env = env
}
func (t *mdLogger) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) {
if depth != 0 {