mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[ewasm] Allow compiling abstract/interface contracts
This commit is contained in:
@@ -1256,6 +1256,9 @@ void CompilerStack::generateEwasm(ContractDefinition const& _contract)
|
||||
if (m_hasError)
|
||||
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Called generateEwasm with errors."));
|
||||
|
||||
if (!_contract.canBeDeployed())
|
||||
return;
|
||||
|
||||
Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName());
|
||||
solAssert(!compiledContract.yulIROptimized.empty(), "");
|
||||
if (!compiledContract.ewasm.empty())
|
||||
|
||||
Reference in New Issue
Block a user