CRYPTO NEWS

Nasdaq Takes Crypto Bet With Custody Service for Institutions

The stock exchange is launching the service to take advantage of the growing interest in crypto among institutional investors. Nasdaq Enters Crypto Custody Space Nasdaq is launching a crypto custody…

Mint function is not working correctly in safemooon contract

I have implemented the mint function in safe moon contract, but it is getting marked on the owner’s address and not the other address which I have passed. function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _tTotal += amount; _rOwned[account] += amount; emit::Listen

I have implemented the mint function in safe moon contract, but it is getting marked on the owner’s address and not the other address which I have passed.

function _mint(address account, uint256 amount) internal virtual {         require(account != address(0), "ERC20: mint to the zero address");          _beforeTokenTransfer(address(0), account, amount);          _tTotal += amount;          _rOwned[account] += amount;          emit Transfer(address(0), account, amount);          _afterTokenTransfer(address(0), account, amount);      }      function mint(address to, uint amount ) public onlyOwner{          _mint(to, amount);              } 

I want to Mint the token in another address and mint the token transfer in another address.

Nasdaq Takes Crypto Bet With Custody Service for Institutions

Shopping cart
There are no products in the cart!
Continue shopping
0