Closed mrtpain closed 3 years ago
Hey @mrtpain, this was fixed in https://github.com/stratisproject/StratisBitcoinFullNode/pull/4182.
Ok thank you @rowandh I will test with a later version of the FN and close this once I do, currently working with 3.0.5.0 and Cirrus Core Hackathon edition 1.3.1 because resource constraints in 1.4.0 using 3.0.8.0 and docker.
Issue
Setting a single character length string in persistent state will return an empty string. Mocking through tests returns the character as expected but when run via FN, the result is an empty string.
I know char type exists for this purpose but I'd still expect using a string type to be able to handle this scenario.
How to reproduce
"f"
)""
""
Use Case
This will come up when contracts need to store a nullable number type. The need to determine null rather than default 0 value causes developers to store this value as a string bringing up this issue if the string is 1 character in length (e.g. a valid
0
value).cc @zeptin @fassadlr