diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index fe0ed81707..ea18678c99 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1006,6 +1006,9 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(hash common.Hash) (map[ return nil, nil } receipt, _, _, _ := core.GetReceipt(s.b.ChainDb(), hash) // Old receipts don't have the lookup data available + if receipt == nil { + return nil, nil + } var signer types.Signer = types.FrontierSigner{} if tx.Protected() {