Function: stringFromByteArray()
stringFromByteArray(
myByteArray):string
Defined in: src/utils/calldata/byteArray.ts:19
convert a Cairo ByteArray to a JS string
Parameters
myByteArray
Cairo representation of a LongString
Returns
string
a JS string
Example
const myByteArray = {
data: [],
pending_word: '0x414243444546474849',
pending_word_len: 9
}
const result: String = stringFromByteArray(myByteArray); // ABCDEFGHI