defi-wonderland / smock

The Solidity mocking library
MIT License
319 stars 40 forks source link

docs: fix docs for Installation multiple compilers #108

Closed kevupton closed 2 years ago

kevupton commented 2 years ago
// hardhat.config.js

... // your plugin imports and whatnot go here

module.exports = {
  ... // your other hardhat settings go here
  solidity: {
    ... // your other Solidity settings go here
    settings: {
      outputSelection: {
        "*": {
          "*": ["storageLayout"]
        }
      }
    }
  }
}

With also:

// hardhat.config.js

... // your plugin imports and whatnot go here

module.exports = {
  ... // your other hardhat settings go here
  solidity: {
    ... // your other Solidity settings go here
    compilers: [
      {
        ...// compiler options
        settings: {
          outputSelection: {
            "*": {
              "*": ["storageLayout"]
            }
          }
      }
    }
  }
}
wei3erHase commented 2 years ago

hi @kevupton, please submit a PR with the proposed changes!