How to distribute initial supply in Constructor?

Hey guys,
I need help. I am trying to divide the total supply and distribute it to some 3 wallets. I want that this is done as the contract is deployed so I need to do in the constructor.
I tried everything but I can’t get this to work.

If I try this:
_tOwned[marketingWallet] = _devAmt;
_tOwned[_msgSender()] = _tTotal.sub(_devAmt);

I get this:

1 Like

The problem is you’re not emitting Transfer events. See our guide on Creating Supply. Use OpenZeppelin’s ERC20 implementation instead of rolling your own.

Thank you for your reply. The Transfer event are emitted. I didn’t inclued in the topic

Oh sorry… In that case it may be an Etherscan problem. Feel free to share more of the code if you want us to take a look.