Hello,
I encountered the same problem with the new version solc compiler.
My contract:
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyToken is ERC20 {
constructor(uint256 initialSupply) ERC20("MyToken", "MTK") {
_mint(msg.sender, initialSupply);
}
}
My solc version: 0.8.2
Truffle v5.3.6 (core: 5.3.6)
Node v15.14.0
Error:
TypeError: Cannot read property 'slice' of undefined
at convertJsFunctionToWasm....
Does anyone know what happens here?
Thanks!