hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
128 stars 108 forks source link

Log requests with zero addresses return unexpected records #8605

Closed quiet-node closed 3 months ago

quiet-node commented 3 months ago

Description

The endpoint /api/v1/contracts/{contractIdOrAddress}/results/logs returns unexpected records with zero address. The expected behavior of log requests with zero addresses should return an empty array.

Steps to reproduce

  1. Run this curl command

    curl --location 'https://testnet.mirrornode.hedera.com/api/v1/contracts/0x0000000000000000000000000000000000000000/results/logs'
  2. Notice that the results contain a big list of records.

Additional context

No response

Hedera network

mainnet, testnet, previewnet, other

Version

latest

Operating system

None