0

I have in my workspace different contracts and interfaces with different solidity pragram

For that, I am set in the hardhat-config.js following:

solidity: {
    compilers: [
      {
        version: '0.5.16',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
      {
        version: '0.6.2',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
      {
        version: '0.6.6',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
    ],
  },

I am working with Visual Studio Code and my problem is that I can just set for the VS Code workspace the remote compiler version, eg. 0.5.16 but then the contracts for 0.6.2 are throwing an issues.

How I can set for each file or folder the contract version?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.