Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HH700: Artifact for contract "MinimalForwarder" not found #28

Open
kylemantesso opened this issue Oct 25, 2022 · 3 comments
Open

HH700: Artifact for contract "MinimalForwarder" not found #28

kylemantesso opened this issue Oct 25, 2022 · 3 comments

Comments

@kylemantesso
Copy link

kylemantesso commented Oct 25, 2022

Running through the readme. for workshop 25, try to run yarn deploy and get this error

workshops/25-defender-metatx-api [master●] » yarn deploy      
yarn run v1.22.19
$ node scripts/deploy.js
HardhatError: HH700: Artifact for contract "MinimalForwarder" not found.
    at Artifacts._getArtifactPathFromFiles (/Users/kylemantesso/dev/workshops/25-defender-metatx-api/node_modules/hardhat/internal/artifacts.js:264:19)
    at Artifacts._getArtifactPath (/Users/kylemantesso/dev/workshops/25-defender-metatx-api/node_modules/hardhat/internal/artifacts.js:217:21)
    at async Artifacts.readArtifact (/Users/kylemantesso/dev/workshops/25-defender-metatx-api/node_modules/hardhat/internal/artifacts.js:46:30)
    at async getContractFactoryByName (/Users/kylemantesso/dev/workshops/25-defender-metatx-api/node_modules/@nomiclabs/hardhat-ethers/dist/src/helpers.js:49:22)
    at async main (/Users/kylemantesso/dev/workshops/25-defender-metatx-api/scripts/deploy.js:19:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@kylemantesso
Copy link
Author

I had to bump the verison of solidity in the hardhat config to get this to work. It may be because there is a package-lock.json but the readme says to use yarn, so it may install a newer version as a dep.

hardhat.config.js

module.exports = {
  solidity: "0.8.9",
  networks: {
    local: {
      url: 'http://localhost:8545'
    },
    goerli: {
      url: 'https://rpc.goerli.mudit.blog',
      accounts: [process.env.PRIVATE_KEY],
    },

  }
};

@jnuno98
Copy link

jnuno98 commented Jan 4, 2023

Even with that change I can't make it work.
Should I bump solidity to a newer version?

@vicentemunozlh
Copy link

You should do what @kylemantesso said in the previous response (#28 (comment)) and then compile!

yarn hardhat compile

Or at leas that worked for me. Then, if you are deploying the Forwarder/Registry contracts with your relayer you should found the relayer with goerli eth after compiling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants