Hi, I'm using ethclient's CallContract (i.e. eth_call) from Go to call contract methods but cannot figure out how to decode the result. E.g., calling symbol() on an ERC-20 contract is supposed to return a mere string, yet I get a large amount of binary data as a result (which seems very inefficient to me) with the Symbol embedded somewhere in the middle. Decoding is as RLP doesn't seem to work. I'd be glad for any help.
Oct 4, 2020, 8:07 PM