[ewasm] Allow compiling abstract/interface contracts

This commit is contained in:
Alex Beregszaszi 2020-10-28 23:40:06 +00:00
parent a63d850f50
commit fcedaba7f7
2 changed files with 4 additions and 2 deletions

View File

@ -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())

View File

@ -1,2 +1 @@
{"errors":[{"component":"general","formattedMessage":"InternalCompilerError:
","message":"Internal compiler error (/project/solidity/libsolidity/interface/CompilerStack.cpp:1260):","severity":"error","type":"InternalCompilerError"}],"sources":{"A":{"id":0}}}
{"contracts":{"A":{"C":{"ewasm":{"wasm":"","wast":""}}}},"sources":{"A":{"id":0}}}