Open ellyblueeyes opened 2 years ago
Hi .. check if you install chainlink to your code .
Hello @ellyblueeyes As you want to use the solidity version 0.8, you don't need the safeMath import. Try deleting it.
@cromewar is correct. Additionally, the import is not found because it doesn't not exist at the given path. If you go to that file path on GitHub 'SafeMathChainlink.sol' does not exist. It stops after 'v0.7' due to lack of need with Solidity v0.8.0
Thank you!
Hello, I am trying to run this code in the terminal but I get this Error: not found @chainlink/contracts/src/v0.8/vendor/SafeMathChainlink.sol. I updated the version for solidity. I understand that SafeMath is no longer necessary for solidity 0.8 version, but I don't know how to modify the code so that it can work. Thank you for help.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@chainlink/contracts/src/v0.8/vendor/SafeMathChainlink.sol";
contract FundMe {
}