Skip to content

Lesson 7: Can't verify contract on etherscan and staging test fails somehow. #2890

Discussion options

You must be logged in to vote

Hey @SimSimButDifferent use deployments instead of deployment on line 11 on your 01-deploy-fund-me.js and line 8 of your 00-deploy-mocks.js. That should take care of the first error.
Additionally, you should also make this change on line 34 of your 01-deploy-fund-me.js

-- waitConfirmations: network.config.blockchainConfirmations || 1
++ waitConfirmations: network.config.blockConfirmations || 1

Lastly, add this piece of code in your fundMe.test.js file so that you can only run it locally.

!developmentChains.includes(network.name)
    ? describe.skip

I've made a pull request for all these changes. Please look into it.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SimSimButDifferent
Comment options

@othaime-en
Comment options

Answer selected by SimSimButDifferent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants