stratisproject / StratisFullNode

MIT License
97 stars 65 forks source link

[Cirrus] Transaction Receipt Return Value #623

Open mrtpain opened 3 years ago

mrtpain commented 3 years ago

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.

rowandh commented 3 years ago

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.