eth_getLogs doesn't return BlockNumber, TxHash, TxIndex, Index #54

Closed
opened 2021-04-18 19:41:04 +00:00 by ramilexe · 0 comments
ramilexe commented 2021-04-18 19:41:04 +00:00 (Migrated from github.com)

The expected result (from geth) contains correct BlockNumber, TxHash, TxIndex, BlockHash fields.
Response from ipld-eth-server doesn't contain it

    Expected
        <[]types.Log | len:1, cap:4>: [
            {
                Address: [37, 115, 69, 16, 248, 61, 69, 206, 102, 138, 98, 218, 195, 117, 59, 224, 26, 36, 27, 183],
                Topics: [
                    [239, 222, 170, 245, 102, 247, 117, 29, 22, 161, 44, 127, 168, 144, 158, 183, 65, 32, 244, 44, 186, 51, 77, 7, 221, 82, 70, 196, 143, 31, 186, 129],
                ],
                Data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 101, 108, 108, 111, 32, 49, 50, 51, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                BlockNumber: 14,
                TxHash: [219, 61, 94, 242, 212, 227, 38, 14, 27, 140, 27, 203, 176, 155, 45, 143, 231, 166, 66, 49, 150, 162, 11, 138, 63, 166, 192, 157, 217, 215, 144, 115],
                TxIndex: 0,
                BlockHash: [184, 33, 202, 121, 189, 55, 23, 67, 104, 7, 62, 70, 157, 185, 46, 173, 117, 20, 138, 149, 247, 194, 76, 73, 242, 67, 95, 183, 199, 121, 117, 136],
                Index: 0,
                Removed: false,
            },
        ]
    to equal
        <[]types.Log | len:1, cap:4>: [
            {
                Address: [37, 115, 69, 16, 248, 61, 69, 206, 102, 138, 98, 218, 195, 117, 59, 224, 26, 36, 27, 183],
                Topics: [
                    [239, 222, 170, 245, 102, 247, 117, 29, 22, 161, 44, 127, 168, 144, 158, 183, 65, 32, 244, 44, 186, 51, 77, 7, 221, 82, 70, 196, 143, 31, 186, 129],
                ],
                Data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 101, 108, 108, 111, 32, 49, 50, 51, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                BlockNumber: 0,
                TxHash: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                TxIndex: 0,
                BlockHash: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                Index: 0,
                Removed: false,
            },
        ]
The expected result (from geth) contains correct `BlockNumber`, `TxHash`, `TxIndex`, `BlockHash` fields. Response from ipld-eth-server doesn't contain it ``` Expected <[]types.Log | len:1, cap:4>: [ { Address: [37, 115, 69, 16, 248, 61, 69, 206, 102, 138, 98, 218, 195, 117, 59, 224, 26, 36, 27, 183], Topics: [ [239, 222, 170, 245, 102, 247, 117, 29, 22, 161, 44, 127, 168, 144, 158, 183, 65, 32, 244, 44, 186, 51, 77, 7, 221, 82, 70, 196, 143, 31, 186, 129], ], Data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 101, 108, 108, 111, 32, 49, 50, 51, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], BlockNumber: 14, TxHash: [219, 61, 94, 242, 212, 227, 38, 14, 27, 140, 27, 203, 176, 155, 45, 143, 231, 166, 66, 49, 150, 162, 11, 138, 63, 166, 192, 157, 217, 215, 144, 115], TxIndex: 0, BlockHash: [184, 33, 202, 121, 189, 55, 23, 67, 104, 7, 62, 70, 157, 185, 46, 173, 117, 20, 138, 149, 247, 194, 76, 73, 242, 67, 95, 183, 199, 121, 117, 136], Index: 0, Removed: false, }, ] to equal <[]types.Log | len:1, cap:4>: [ { Address: [37, 115, 69, 16, 248, 61, 69, 206, 102, 138, 98, 218, 195, 117, 59, 224, 26, 36, 27, 183], Topics: [ [239, 222, 170, 245, 102, 247, 117, 29, 22, 161, 44, 127, 168, 144, 158, 183, 65, 32, 244, 44, 186, 51, 77, 7, 221, 82, 70, 196, 143, 31, 186, 129], ], Data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 72, 101, 108, 108, 111, 32, 49, 50, 51, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], BlockNumber: 0, TxHash: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], TxIndex: 0, BlockHash: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], Index: 0, Removed: false, }, ] ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/ipld-eth-server#54
No description provided.