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

[Cirrus] Transaction Receipt Return Value #623

Open
mrtpain opened this issue Jul 14, 2021 · 1 comment
Open

[Cirrus] Transaction Receipt Return Value #623

mrtpain opened this issue Jul 14, 2021 · 1 comment

Comments

@mrtpain
Copy link

mrtpain commented Jul 14, 2021

Support for returning an array in the returnValue, a delimited string, or escaped json string when retrieving a transaction receipt.

Current responses show like: "returnValue": "Stratis.SmartContracts.UInt256[]"

Running latest release/1.0.9.0.

@mrtpain mrtpain changed the title Transaction Receipt Return Value [Cirrus] Transaction Receipt Return Value Jul 14, 2021
@rowandh
Copy link
Contributor

rowandh commented Jul 20, 2021

This occurs due the return value's ToString being used to get its string representation that is persisted in the receipt DB. This works fine for most primitive types but unfortunately not arrays of primitive types. Any solution will need to consider that the receipt DB must be fully rebuilt as all previous array return values will change.

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

No branches or pull requests

2 participants