Using Geth I am reading from a smart contract and a list of addresses is retrieved when outputting to the terminal. These addresses are in byte array format:
fmt.printLn("address", address)
output = address [16 22 32 12 22 0 0 0 0 0 16 0 0 0 0 0 0 0 0 3]
when I try to convert back to hex I keep coming against the following:
cannot use address (type common.Address) as type string in argument to bytes.NewBufferString
So far, I have tried various different ways to make the conversion but with no luck: string(address[:] etc etc..
.
Anyone have any clues?
string(address.GetBytes())
?address.GetBytes undefined (type common.Address has no field or method GetBytes)