Hey guys, has anyone deployed a HR20 contract via Remix …
I have tried but I have not had much success.
pragma solidity >=0.4.21 <0.6.0;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
contract HarmonyERC20 is ERC20, ERC20Detailed {
constructor(string memory _name, string memory _symbols, uint8 _decimals, uint256 _amount)
ERC20Detailed(_name, _symbols, _decimals)
public {
_mint(msg.sender, _amount);
}
}
I have had success deploying this ERC20 contract
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract ArtisToken is ERC20 {
/**
* @dev Constructor that gives msg.sender all of existing tokens.
*/
constructor () ERC20("Artis Test Token", "ART") {
_mint(msg.sender, 1000000 * (10 ** uint256(decimals())));
}
}
but when I search for the symbol “ART” I can’t find it …