I’m trying to show the values of an application global state in a human-readable format.
If the global state param is of type “Bytes”, Then it can be converted to a human-readable string by doing
EX: atob(“Z29sZGk=”) will return “glodi”
But it is failing, if the value stored is the address or Tx-id.
I know how to decode address and tx-id to actual values, but the problem I’m trying to resolve is how to identify whether the values saved as “Bytes” are a normal string vs address/tx-id?
