web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Auto generated toString method for structs

Open Julius278 opened this issue 11 months ago • 4 comments

Feature description_

Hi all, I guess this could be a smaller feature. Working with structs can be very helpful to retrieve objects. But an auto generated toString method with all variables would be pretty nice for fast prototyping and logging.

I didnt really find a good spot to put it, otherwise I would have taken a deeper look into it.

Julius278 avatar Feb 14 '25 09:02 Julius278

I can take this on

aceppaluni avatar Feb 19 '25 15:02 aceppaluni

Hi @Julius278 Does this conform to what you had anticipated? #2169

aceppaluni avatar Aug 20 '25 15:08 aceppaluni

@FangshuoCao could you please add some description on how it works now?

gtebrean avatar Aug 25 '25 14:08 gtebrean

Hi @aceppaluni, looks good :) thanks for your effort

Let me know when its merged and added to a new release version. Afterwards I can test it in an application with some custom structs.

Julius278 avatar Aug 25 '25 15:08 Julius278