In solidity, the bytecode for functions is taking the web3.sha3 value of a function name and taking the first 4 bytes of the resulting hash in the format of 0x00000000
So if you have a function called totalsupply() the hash would be 0x18160ddd
I have the understanding that public variables have getters automatically created.
However, when trying to determine the bytecode for a public variable such as 'Name'. I would assume the function created is 'Name()' and thus the bytecode is 0x8052474d.
However, it doesnt seem to be working when I try to call a function using that bytecode.
Any thoughts as to what I am doing wrong?