Reading strings back from contracts

capnnemocapnnemo Member Posts: 10
Let's say my contract has a constant function corresponding to a public bytes32 variable:


When I try to invoke this function in web3, I get back cryptic hex values instead of the string I expect.

contract.feedName(); // Returns "0x5553445f45544800000000000000000000000000000000000000000000000000" instead of "USD"

Am I missing something or is it not possible to read back strings?


Sign In or Register to comment.