We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823fc68 commit fba184dCopy full SHA for fba184d
x/evm/keeper/grpc_query.go
@@ -488,7 +488,10 @@ func execTrace[T traceRequest](
488
// be tracer dependent.
489
func (k Keeper) TraceTx(c context.Context, req *types.QueryTraceTxRequest) (*types.QueryTraceTxResponse, error) {
490
var baseFee *big.Int
491
- if req != nil && req.BaseFee != nil {
+ if req == nil || req.Msg == nil {
492
+ return nil, status.Error(codes.InvalidArgument, "msg cannot be empty")
493
+ }
494
+ if req.BaseFee != nil {
495
baseFee = big.NewInt(req.BaseFee.Int64())
496
}
497
resultData, err := execTrace(
0 commit comments