Description
There is a problem when we want to replace the non-ascii text value in metadata with ascii one. In such a case we receive the error:
Failure_Metadata_Value_Size_Delta_Mismatch
Example steps:
- Create metadata with non-ascii text, for example "秦"
- Wait for transaction confirmation and try editing metadata to "t"
As a result, we receive the error: Failure_Metadata_Value_Size_Delta_Mismatch
Example payload:
0801000000000000A26BE365F3427509F0B65AC6F62EB87FA61D396B0770BEF18250CEA98E941FD7D2BF519B2E0A8B3C964F6AA746102A8B460E5BFEADEECA059A0530A373FB9208022CB0362389D0F0BEE5F078548AF7C4F63CA64A681B85BEE405C94D67D7F35500000000019841419096000000000000621B288901000000752EEBFB492FF329E7FBEE09865A208B08054C33731C857728EA757C6AF1546C60000000000000005A00000000000000022CB0362389D0F0BEE5F078548AF7C4F63CA64A681B85BEE405C94D67D7F355000000000198444198AA9CECDDF1A6C0657E34D8B5F7935C6A9383DFC739B0D5E35080E3FC91018EFEFF0600C293C2A7C2A6000000000000
The problem is related to how xor byte value is converted back to text: