StratisFullNode icon indicating copy to clipboard operation
StratisFullNode copied to clipboard

[Cirrus] Transaction Receipt Return Value

Open mrtpain opened this issue 4 years ago • 1 comments

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 avatar Jul 14 '21 17:07 mrtpain

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.

rowandh avatar Jul 20 '21 22:07 rowandh