I've been trying to compile contracts using the current newest version of Solidity on Remix which is 0.6.0. However when I compile the following code
//pragma solidity ^0.6.0;
pragma solidity ^0.5.15;
import "Token.sol";
contract TokenTimeSol{
Token public token;
address public beneficiary;
uint public releaseTime;
constructor(Token _token, address _beneficiary, uint _releaseTime) public{
require(_releaseTime >= block.timestamp);
token = _token;
beneficiary = _beneficiary;
releaseTime = _releaseTime;
}
function releaseTokens() public{
require(block.timestamp >= releaseTime);
uint _amount = token.balanceOf(address(this));
require(_amount > 0);
token.transfer(beneficiary, _amount);
}
}
using v0.6.0, I get the following error on hitting compile.
Uncaught JavaScript exception:
TypeError: soljson.Pointer_stringify is not a function
And when I hit compile again without changing anything, I get the following error in place of the one mentioned above.
Internal exception in StandardCompiler::compile: /root/project/libsolidity/interface/CompilerStack.cpp(90): Throw in function dev::solidity::CompilerStack::CompilerStack(const ReadCallback::Callback &)
Dynamic exception type: boost::wrapexcept<langutil::InternalCompilerError>
std::exception::what: You shall not have another CompilerStack aside me.
[dev::tag_comment*] = You shall not have another CompilerStack aside me.
This error message persists for all other contracts.
The contracts work fine with older versions of Solidity. But I've been getting the above error recently on compilation. I've just started with solidity and am curious to know the issue.
Thanks in advance.