The EthAddressFromID function is inconvenient because it returns the Ethereum address as an array of bytes. What is the correct way to convert these bytes into a string representation (e.g., string(contractAddress[:]))? If EthAddressFromID could directly return the string representation, it would be much more convenient.
The
EthAddressFromID
function is inconvenient because it returns the Ethereum address as an array of bytes. What is the correct way to convert these bytes into a string representation (e.g.,string(contractAddress[:])
)? If EthAddressFromID could directly return the string representation, it would be much more convenient.