Unable to successfully compile (Truffle Compile), the following error appears when I run command in VS CODE TypeError: Type int_const 18 is not implicitly convertible to expected type string storage ref.
decimals = 18;
Code to reproduce
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol";
contract DaiTokenMock is ERC20Mintable {
string public name;
string public symbol;
string public decimals;
constructor() public {
name = "Dai Stablecoin (DAI)";
symbol = "DAI";
decimals = 18;
}
}
#### 💻 Environment
truffle v.5.0.5
Node v12.19.0