fixed marshalling error with nil (#354)

* fixed marshalling error with nil

* returning empty byte slice

* returning empty byte slice pt2
This commit is contained in:
Enrique Jose Avila Asapche 2022-03-10 20:24:04 +00:00 committed by GitHub
parent 3123b6d895
commit c82e350e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,10 @@ func (s *GrpcServer) Transactions(ctx context.Context, in *txpool_proto.Transact
if err != nil {
return nil, err
}
if txnRlp == nil {
reply.RlpTxs[i] = []byte{}
continue
}
reply.RlpTxs[i] = txnRlp
}