small quick question, when I store a
bytes32 and retrieve it from truffle console, why is it showing in 64 bits?
because this is kinda annoying when it comes to using truffle testing framework.
assert.equal(data.toUpperCase(), "0x74657374737472696e6700000000000000000000000000000000000000000000".toUpperCase(), "name doesn't match");
bytes32 data, I have to match an exact 64 bits hex value in order to pass. So for
assert.equal's second parameter where I would enter in my predicted value, I have to manually convert a string to hex using mostly from this site, and in fact most of the string to hex sites do not show in full 64 bits. They would show it as:
It is annoying that I have to count the zeros and append them to match 64 bits. Are there any handy ways to handle this?