Hello. I’m trying to get erc1155 to my account balance from smart contract, which is minting erc1155.
Here is code of this smart contract:
pragma solidity >=0.6.0 <=0.8.3;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
contract ERC1155Basic is ERC1155 {
uint256 public COUNTER;
uint256 public my_contract_number_erc20;
uint256 public my_contract_token721_id;
string public _baseduri;
constructor() public ERC1155(""){
COUNTER = 0;
}
function create_erc1155_token(bytes calldata token_data) external returns(uint256){
COUNTER++;
_mint(msg.sender, COUNTER, 1, token_data);
return COUNTER;
}
}
I can successfully calling function create_erc1155_token, but i can’t see created token at etherscan, it shows me nothing. But when i calling balanceof
token function, it shows my balance correctly. How can i see my tokens at etherscan?