Let Receipt.GetProof() returns ErrNotFound
Get(n) already returns ErrNotFound on failure.
So, let it return proper error object.
Fix for
@@ -60,7 +60,7 @@ func (l *receiptList) GetProof(n int) ([][]byte, error) {
}
proof := l.immutableTrie.GetProof(b)
if proof == nil {
- return nil, errors.ErrIllegalArgument
+ return nil, errors.ErrNotFound
}
return proof, nil
}
