Deploying HR20 Contracts

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 …

@devonart can you share the contract address that you have deployed? How are you searching for the symbol? Adding @ganesha to suggest ways to debug.

I am working on deploying a new contract but @ganesha If you I deployed my HRC20 Token would I be able to see the Symbols and Name …

Please review below …

@devonart we have a tutorial for deploying HRC20 token: Deploying HRC20 - Harmony

The old explorer does not immediately show the token name, symbol, etc of your deployed contract because it is a separate utility that runs slowly and makes the (name, symbol) available after some time. Right now, the beta.explorer.harmony.one should immediately show the HRC20 token details right after it is deployed.

Try the above tutorial and let me know if you have issues deploying. Thanks.

1 Like

Thanks that is what I will test … I have been having problems for the last two days deploying anything to testnet, I posted in the Dev community I also had problems using the wallet on testnet …