0

I successfully deployed my smart contract that enables me to mint NFTs. Now I know that everything on the blockchain is permanent, so if I wanted to make changes to that contract, I have to deploy a "v2" of the same contract with changes. Now the problem is that the second time I deploy, I don't have access to the Contract tab options like Read Contract and Write Contract unlike the first time I deployed:

enter image description here

Instead, this is what I see:

enter image description here

I'm confused... what am I doing wrong?

5
  • Unless the contract is verified you won't have access to those sections.
    – Ismael
    Feb 12, 2022 at 16:59
  • How did my first deployment of the contract got it verified in the first place? Feb 12, 2022 at 17:14
  • 1
    If you deploy a contract that has exactly the same bytecode that another contract that was already verified on etherscan will show it as verified. That is quite easy to do if you used the source code from a tutorial, public github repo, etc.
    – Ismael
    Feb 12, 2022 at 17:21
  • @Ismael Ah! Makes sense why It was already verified when I deployed it. It is from a online course's github repo. In that case, how to you verify a smart contract on etherscan?? Feb 12, 2022 at 20:59
  • 1
    In the image you sent youtself, see that there is a link "verify and publish". It will ask you to copy and paste the contract you wrote. Feb 12, 2022 at 21:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.