Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved issue of null value from listaddresstransaction command output #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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