Skip to content

Resolved issue of null value from listaddresstransaction command output#50

Open
nikunj-dhameliya wants to merge 1 commit intohubert-marteau:masterfrom
nikunj-dhameliya:master
Open

Resolved issue of null value from listaddresstransaction command output#50
nikunj-dhameliya wants to merge 1 commit intohubert-marteau:masterfrom
nikunj-dhameliya:master

Conversation

@nikunj-dhameliya
Copy link
Contributor

@nikunj-dhameliya nikunj-dhameliya commented Mar 27, 2020

When we add metadata with the transaction and this metadata is in JSON form then pick it up using the getaddresstransaction command which causes problems.
This command returns a null value for that specific transaction which contains json metadata.
The reason is simple, here we have the data type of the data attribute is list and we try to get json on that attribute from the transaction.
Just convert it to object data type and it works fine because, the java object data type can handle any complex object stored in the transaction data attribute.
This change won't affect to existing normal transaction which does not contain any metadata.

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