eth_getLogs possible functional problem

Description

It seems that the topics parameter parsing of eth_getLogs is not working well. The following code, works well with quorum/ ganache, but not in BESU 1.3.1..

npx truffle console --network pantheonPRE
> tk = await EmoneyToken.at('0xDC5047718Edf2A7fA5d74C00736834981FA6632d')
> ev1 = await tk.getPastEvents('NativeTransfer', {filter: {to: '0x9181966c17ab1C7cB4b3DcE56F523Dc80733512e'}, fromBlock: 3949014, toBlock: 4074014})
> ev1

the post generated downwards is

{“jsonrpc”:“2.0",“id”:10,“method”:“eth_getLogs”,“params”:[{“fromBlock”:“0x3c41d6",“toBlock”:“0x3e2a1e”,“topics”:[“0xce8688f853ffa65c042b72302433c25d7a230c322caba0901587534b6551091d”,null,“0x0000000000000000000000009181966c17ab1c7cb4b3dce56f523dc80733512e”],“address”:“0xdc5047718edf2a7fa5d74c00736834981fa6632d”}]}

Instead showing only the rerquest to address, it shows any event, that matches de first two parameters, but includes any address.

Testing the following rpc calls, this both calls should serve the same results, but first one shows more content than the second one

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock":"0x3c41d6", "toBlock":"0x3e2a1e", "address": "0xdc5047718edf2a7fa5d74c00736834981fa6632d", "topics":[["0xce8688f853ffa65c042b72302433c25d7a230c322caba0901587534b6551091d"],[null],["0x000000000000000000000000244a53ab66ea8901c25efc48c8ab84662643cc74"]]}], "id":1}' https://regular.pre.iosec.io.builders:8575

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"fromBlock":"0x3c41d6", "toBlock":"0x3e2a1e", "address": "0xdc5047718edf2a7fa5d74c00736834981fa6632d", "topics":["0xce8688f853ffa65c042b72302433c25d7a230c322caba0901587534b6551091d",null,"0x000000000000000000000000244a53ab66ea8901c25efc48c8ab84662643cc74"]}], "id":1}' https://regular.pre.iosec.io.builders:8575

Environment

None

Status

Assignee

Trent Mohay

Reporter

Fernando Paris

Labels

None

Scrum Team

Phoenix

Refinement State

Ready for Work

Story Points

1

Components

Sprint

None

Fix versions

Affects versions

PAN 1.3

Priority

P3
Configure