eth/tracers: make txhash blockhash accessible to native tracers (#24679)

This commit is contained in:
Sina Mahmoodi
2022-04-12 21:09:27 +02:00
committed by GitHub
parent d4d288e3f1
commit 9c82c646e4
5 changed files with 12 additions and 9 deletions

View File

@ -55,7 +55,7 @@ type fourByteTracer struct {
// newFourByteTracer returns a native go tracer which collects
// 4 byte-identifiers of a tx, and implements vm.EVMLogger.
func newFourByteTracer() tracers.Tracer {
func newFourByteTracer(ctx *tracers.Context) tracers.Tracer {
t := &fourByteTracer{
ids: make(map[string]int),
}