I Call SmartContract Token ERC20, Why Show Hashing Output ? (Web3 + Metamask + Javascript)

zororakazororaka Member Posts: 3
edited September 2019 in web3-js
I do not know why with this, even though in the previous version (web3 + Metamask) can issue real data. But now used as hashing (output). I took the example in the code and output below (to get the TotalSupply on the ERC20 Token):
const contractInstance = web3.eth.contract(contractAbi).at(contractAddress);
const total_supply = contractInstance.totalSupply.getData();
Output : 0x18160ddd (this is my problem)

How to showing real data? In a sense it doesn't come out hashing. Thanks
Sign In or Register to comment.