Why is ERC20 total supply doubled in BSCScan?

When I create my token total supply is double the value I set like this:

uint256 private _totalSupply = 1000000000000000 * (10 ** 9);
uint256 private _minimumSupply = 1000000000 * (10 ** 9);
uint8 private _decimals = 9;

string private _name;
string private _symbol;

constructor (string memory name_, string memory symbol_) {
    _name = name_;
    _symbol = symbol_;
    
    _mint(msg.sender, _totalSupply);
}

Creator receives 10 ** 15 and total supply shown in bscscan is 2 * 10 ** 15. Why is that?

Could you please share the full code?

Or what will do in your _mint function?

1 Like

yeah i already found the issue, it was in my mint function, sorry for bothering

1 Like