Skip to content

Fix circular reference issue in ethGetLogs filter (#1879)#2288

Open
Dev10-sys wants to merge 1 commit intoLFDT-web3j:mainfrom
Dev10-sys:fix/eth-get-logs-1879-clean
Open

Fix circular reference issue in ethGetLogs filter (#1879)#2288
Dev10-sys wants to merge 1 commit intoLFDT-web3j:mainfrom
Dev10-sys:fix/eth-get-logs-1879-clean

Conversation

@Dev10-sys
Copy link
Copy Markdown
Contributor

Fixes issue #1879 , where ethGetLogs was failing in some environments due to a circular reference during JSON serialization.

The Filter class had an unused field (thisObj) that was pointing to itself, which caused Jackson to go into an infinite loop and throw a "Direct self-reference leading to cycle" error.
Removed this field since it was not used anywhere, which resolves the issue without affecting existing functionality. Verified with reproduction test and full test run.

Signed-off-by: Dev10-sys <kalpanagola9897@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant