Hi, anyone can help me please, i have been stuck in this for a while and cant get the answer, so my problem is everytime i try to complie my smart contract, i always have open zepplin not found. even i change it using github version, it still say not found,
using SafeMath8 for uint8;
using SafeMath for uint256;
'
i'm using the local host to import all my smart contract into Remix IDE. The openzeppelin file is already there, and in the top of the folder. Any one have the solution for this issues?
your @openzeppelin links are wrong, use:
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
I guess your imported contracts have dependencies that are missing on your local folder, I also see you are mixing old and new contracts since SafeMath is obsolete in solidity >=0.8.0 ...
Would need to see the whole contract to help you more.
using SafeMath for uint256;
// Supply used to launch in LP
uint256 public constant INITIAL_LAUNCH_DISTRIBUTION = 900000000 ether; // 1 billion of V3S
// Have the rewards been distributed to the pools
bool public rewardPoolDistributed = false;
/**
* @notice Constructs the V3S ERC-20 contract.
*/
constructor() public ERC20("V3SToken", "V3S") {
_mint(msg.sender, 100000000 ether);
}
it still say not found @openzeppelin/contracts/math/Math.sol in the compiler.
Do i need to install the openzepplin in the remix? so the import function will work