0

Here is the token contract I created - https://ropsten.etherscan.io/address/0x2cccce414fcdf028c0574766af4302a4abeb5788 Address: 0x2CCcCe414FCdF028C0574766Af4302A4aBEB5788

For some reason I can not see its total supply or any other info on etherscan, and also when I add a new token on Myetherwallet it gives an error - (error_21) Not a valid ERC-20 token.

What could be the reason? Please help the noob.

I used openzeppelin/truffle/infura, pretty simple contract:

pragma solidity ^0.4.24;

import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol";

contract TestToken is StandardToken {

string public name = "Token";
string public symbol = "T1";
uint8 public decimals = 18;
uint public INITIAL_SUPPLY = 4000000000000000000000000000;

constructor() public {
  totalSupply_ = INITIAL_SUPPLY;
  balances[msg.sender] = INITIAL_SUPPLY;
}
}
1

0x2CCcCe414FCdF028C0574766Af4302A4aBEB5788 seems to be your truffle migration contract address.

The actual token is at 0x0f26c1c05f1bbBC7Eff0488F1a98619e8a9758cf.

  • oh yeah, but still ropsten.etherscan.io/address/… I can't see any Supply amount, holders, symbol and token name. – Josephhh Aug 3 '18 at 3:13
  • so I am quite confused, I see other people's tokens on ropsten network they got those info, even though I also specified them in the source code. – Josephhh Aug 3 '18 at 3:14
  • Verify your contract source, etherscan needs to know the abi before it can start showing stuff. Alternatively, make a transfer from the owner to itself for the total supply. Once etherscan sees a transfer event, they will assume it's an ERC20 token – Raghav Sood Aug 3 '18 at 3:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.