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:
parent
a63d850f50
commit
fcedaba7f7
@ -1256,6 +1256,9 @@ void CompilerStack::generateEwasm(ContractDefinition const& _contract)
|
|||||||
if (m_hasError)
|
if (m_hasError)
|
||||||
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Called generateEwasm with errors."));
|
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Called generateEwasm with errors."));
|
||||||
|
|
||||||
|
if (!_contract.canBeDeployed())
|
||||||
|
return;
|
||||||
|
|
||||||
Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName());
|
Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName());
|
||||||
solAssert(!compiledContract.yulIROptimized.empty(), "");
|
solAssert(!compiledContract.yulIROptimized.empty(), "");
|
||||||
if (!compiledContract.ewasm.empty())
|
if (!compiledContract.ewasm.empty())
|
||||||
|
@ -1,2 +1 @@
|
|||||||
{"errors":[{"component":"general","formattedMessage":"InternalCompilerError:
|
{"contracts":{"A":{"C":{"ewasm":{"wasm":"","wast":""}}}},"sources":{"A":{"id":0}}}
|
||||||
","message":"Internal compiler error (/project/solidity/libsolidity/interface/CompilerStack.cpp:1260):","severity":"error","type":"InternalCompilerError"}],"sources":{"A":{"id":0}}}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user