eth/tracers: fix trace config for TraceCall (#25821)

Co-authored-by:  AtomicAzzaz  <AtomicAzzaz@users.noreply.github.com>
Co-authored-by:  ewile <ewile@users.noreply.github.com>
This commit is contained in:
makcandrov 2022-09-21 00:55:48 -07:00 committed by GitHub
parent 338bb2e36c
commit 5d11d38f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -895,12 +895,7 @@ func (api *API) TraceCall(ctx context.Context, args ethapi.TransactionArgs, bloc
var traceConfig *TraceConfig var traceConfig *TraceConfig
if config != nil { if config != nil {
traceConfig = &TraceConfig{ traceConfig = &config.TraceConfig
Config: config.Config,
Tracer: config.Tracer,
Timeout: config.Timeout,
Reexec: config.Reexec,
}
} }
return api.traceTx(ctx, msg, new(Context), vmctx, statedb, traceConfig) return api.traceTx(ctx, msg, new(Context), vmctx, statedb, traceConfig)
} }