I have recently created a new ERC20 contract based on exactly the same internal function _mint which gets called by the public function mintFVP(). Originally these two functions were fully tested and eventually deployed on Mainnet and have worked as expected for almost two years. See the following two contracts:
Such contract was successfully verified and signed. See
However, I have not been able to see the function mintFVP() when I try to interact with it via Etherscan while connecting with Metamask using the Wallet Creator. See
Is there anyone here who could shed some light on how to resolve this issue? The most embarrasing thing is that I have not been able to Update the Token Information via Etherscan Helpdesk. The tickets #120001 and #120314 have been opened and I have interacted with Mr./Ms. Raja C, but he/she has not been able to update the Token Information because since I have not been able to mint any tokens yet, they believe that the Contract is NOT a Token contract.
Unfortunately when you deployed via Remix instead of deploying the FVP_Token contract it looks like you deployed ERC20 contract. When you deployed to Ropsten you deployed FVP_Token (you can see the contract name in verified Etherscan source code).
Whilst the verified code includes FVP_Token, this isn’t what you deployed.
Thanks so much for clarifying the issue . I just have two additional questions:
a) if I interact (run) the deployed contract via Remix using the same contract address, and I mean, only running the mintFVP() function, would it work?
Note: Murch earlier I was trying to do so, by fetching the contract via Remix, but it would not retreieve it, so I was not able to see if the API interface, so I decided to switch to the old version of Remix and voilá
b) If so, then I would not mind always interating with the contract via Remix. I just would have to be more careful when deploying the next contract. Or does the Contract Name (ERC20) have to match with something within the Contract?
I tend to believe that because the token has not been minted yet, the only Contract Name available is ERC20; however, once I run mintFVP(), the constructor variables will be put in place and then the Contract will be renamed FVP_Token…
To put it another way, only part of your contract has been deployed. Only the OpenZeppelin Contracts ERC20 has been deployed and not ERC20Pausable or your FVP_Token.
As an aside, I also noticed that you are not using ERC20Detailed to set your token metadata.
When I deployed FVP_Tokel.sol on Ropsten via Truffle/Infura it migrated and worked just fine; but when I started experiencing issues while deploying on Mainnet (the prompt would just sit there for hours after compiling) I decided to try Remix (granted, the new fancy version) which in fact I do not recall there was an area where one would specifically select FVP_Token.sol.
It is very possible however since it has been a while I messed with Remix to begin with, that I totally forgot about ensuring that the master contract (FVP_Token.sol) was selected before it was deployed, or I simply did not see the area where to select the contract once it has been loaded.
I will do as you advice, with the OLD VERSION of Remix. Once the contract has been successfully deployed, verified, signed, updated, and I successfully run mintFVP, I will note this update this Topic as Solved.
On the second subject you brought up, would you please be so kind to advice me on how and where I ought to add/apply the ERC20Detailed on the FVP_Token.sol Contract?