Here my code, but Total Supply is not displayed. I’m so stupid? (here the contract: Contract Address 0xd102f3fcdb3edc93d238fb5e4d7371f2d1156f1d | BscScan )
pragma solidity ^0.6.12;
//SPDX-License-Identifier: Unlicensed
contract TotalsupplyDisplay {
string public name;
string public symbol;
uint public decimals;
uint public _totalSupply;
mapping (address => uint) public balances;
constructor() public {
_totalSupply = 100000000000 * (10 ** uint(decimals));
name = "TokenName";
symbol = "TKN";
decimals = 7;
}
function totalSupply() public view returns (uint256) {
return (_totalSupply);
}
function balanceOf(address tokenOwner) public view returns (uint) {
return balances[tokenOwner];
}
}
I’m really so stupid?
Hi @phoenix1977 !
This is not the right place to ask your question, as it appears to me as more of an ad-hoc support question. → For urgent Solidity support questions, please use the Solidity Gitter/Matrix chat or consider checking out the Ethereum StackExchange .
Please check the welcome message before posting, it has all the relevant information.
Welcome to the Solidity Forum!
This is not the place for…
Ad-hoc Solidity support questions. For urgent Solidity support questions, please check out the Ethereum StackExchange or use the Solidity Gitter or Matrix chat.
Solidity bugs, vulnerabilities or issues. To report a bug, please use the GitHub issues tracker and refer to this guide on how to report issues .
Generic Ethereum discussion. For that visit r/ethereum .
Ethereum research specific discussion. For that, please refer…