New answers tagged

1

Your import statement should look like this: import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol"; You also need to use NPM or Yarn to download the Chainlink packages locally.


1

Visual Studio Code doesn't support fetching GitHub files natively, it is only the Remix's feature. If you want to import the files, you need to download them locally.


1

Probably, the closest you will get is to use --asm output from solc. With solc 0.8 you can get the intermediate Yul representation with --ir. The command solc -o build --asm --ir MetaCoin.sol should generate MetaCoin.evm and MetaCoin.yul files in build directory.


1

I went through this error recently. This is happening because the compiler version configured on VS Code workspace is different from the version you want. To fix that just right click on the error and select the option Solidity: Change workspace compiler version (Remote) It will open a drop-down with the available versions and you just pick the 0.7.6. You ...


1

If you are importing other contracts, those too need to be supporting the same pragma solidity version you are using on your main contract. Another thing would be an issue with truffle, where the solc version you are using is not the same one that you are downloading when trying to run the compile command. this used to occur before but it might be the issue. ...


Top 50 recent answers are included