Describe the bug
@Ashuaidehao #316 has an issue with bytes that are not ascii. It is outputting empty (). For example we have an array with a ByteString of 01 and it is printing \u0001 unescaped to the console in turn is only displaying empty (). It should be printing \u0001 as escaped. You need to character escape the string to print out each character \, u, 0, 0, 0 and 1.
To Reproduce
Steps to reproduce the behavior:
Output a ByteString that has a hex value of non-ascii. example: 0x01
Can you space out the () by one space from the hex
Expected behavior
VM State: HALT
Gas Consumed: 237480
Result Stack:
InteropInterface: (StorageIterator)
Array: (2)
414343f9a631ccc9ab51d17c4ea3502bb79869a22ce37701
01() // This line here
Array: (2)
414343f9a631ccc9ab51d17c4ea3502bb79869a22ce37702
02() // This line here
Array: (2)
414343f9a631ccc9ab51d17c4ea3502bb79869a22ce37703
03() // This line here
Array: (2)
414343f9a631ccc9ab51d17c4ea3502bb79869a22ce37704
04() // This line here
Array: (2)
414343f9a631ccc9ab51d17c4ea3502bb79869a22ce37705
05() // This line here
Describe the bug @Ashuaidehao #316 has an issue with bytes that are not ascii. It is outputting empty
()
. For example we have an array with aByteString
of01
and it is printing\u0001
unescaped to the console in turn is only displaying empty()
. It should be printing\u0001
as escaped. You need to character escape the string to print out each character\
,u
,0
,0
,0
and1
.To Reproduce Steps to reproduce the behavior: Output a
ByteString
that has a hex value ofnon-ascii
. example:0x01
Can you space out the
()
by one space from the hexExpected behavior
Screenshots