ethclient/gethclient: use common.Hash to debug_traceTransaction #32404 (#1401)

This commit is contained in:
Daniel Liu 2025-08-31 15:55:06 +08:00 committed by GitHub
parent 5208d126e6
commit b856f98b47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,7 @@ func (ec *Client) SubscribePendingTransactions(ctx context.Context, ch chan<- co
// and returns them as a JSON object.
func (ec *Client) TraceTransaction(ctx context.Context, hash common.Hash, config *tracers.TraceConfig) (any, error) {
var result any
err := ec.c.CallContext(ctx, &result, "debug_traceTransaction", hash.Hex(), config)
err := ec.c.CallContext(ctx, &result, "debug_traceTransaction", hash.Hex, config)
if err != nil {
return nil, err
}