Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requesting logs with ZERO address returns anonymous Events #2614

Closed
simsonraj opened this issue Jun 21, 2024 · 0 comments · Fixed by #2616
Closed

Requesting logs with ZERO address returns anonymous Events #2614

simsonraj opened this issue Jun 21, 2024 · 0 comments · Fixed by #2616
Assignees
Labels
bug Something isn't working
Milestone

Comments

@simsonraj
Copy link
Contributor

Description

When sending a log request with ZERO address in the query,

  • it returns the anonymous logs with no topics
  • It returns other logs which is not of zero address
    We essentially expect no response to be received for the request pasted below

Steps to reproduce

request

    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
        {
         "fromBlock": "0x3954B2",
            "toBlock": "0x395899", "address" : "0x0000000000000000000000000000000000000000"
        }
    ],
    "id": 12
}'```

One of the blocks for this response
``` {
            "address": "0xdf903bff4404952a8d5f5585d1de2787f6a40e62",
            "blockHash": "0x9ef77e7c7838e4e0499fcb37d24494352d273c6c02765cd330525780f7a80d67",
            "blockNumber": "0x3954b2",
            "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
            "logIndex": "0x0",
            "removed": false,
            "topics": [], ---> Anonymour
            "transactionHash": "0x6bc09d56768e6f9d9c999833cc454c3da0e810be04c251958125314f04514817",
            "transactionIndex": "0x1"
        },
        ```
        
And other logs which were not emitted by Zero Address

### Additional context

_No response_

### Hedera network

testnet

### Version

v0.50.0

### Operating system

None
@simsonraj simsonraj added the bug Something isn't working label Jun 21, 2024
@Nana-EC Nana-EC added this to the 0.51.0 milestone Jun 21, 2024
@quiet-node quiet-node self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
3 participants