@@ -200,7 +200,11 @@ void CommandLineInterface::handleOpcode(string const& _contract)
200200
201201void CommandLineInterface::handleIR (string const & _contractName)
202202{
203- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
203+ solAssert (
204+ m_options.input .mode == InputMode::Compiler ||
205+ m_options.input .mode == InputMode::CompilerWithASTImport ||
206+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
207+ );
204208
205209 if (!m_options.compiler .outputs .ir )
206210 return ;
@@ -216,7 +220,11 @@ void CommandLineInterface::handleIR(string const& _contractName)
216220
217221void CommandLineInterface::handleIROptimized (string const & _contractName)
218222{
219- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
223+ solAssert (
224+ m_options.input .mode == InputMode::Compiler ||
225+ m_options.input .mode == InputMode::CompilerWithASTImport ||
226+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
227+ );
220228
221229 if (!m_options.compiler .outputs .irOptimized )
222230 return ;
@@ -232,7 +240,11 @@ void CommandLineInterface::handleIROptimized(string const& _contractName)
232240
233241void CommandLineInterface::handleEwasm (string const & _contractName)
234242{
235- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
243+ solAssert (
244+ m_options.input .mode == InputMode::Compiler ||
245+ m_options.input .mode == InputMode::CompilerWithASTImport ||
246+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
247+ );
236248
237249 if (!m_options.compiler .outputs .ewasm )
238250 return ;
@@ -255,7 +267,11 @@ void CommandLineInterface::handleEwasm(string const& _contractName)
255267
256268void CommandLineInterface::handleBytecode (string const & _contract)
257269{
258- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
270+ solAssert (
271+ m_options.input .mode == InputMode::Compiler ||
272+ m_options.input .mode == InputMode::CompilerWithASTImport ||
273+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
274+ );
259275
260276 if (m_options.compiler .outputs .opcodes )
261277 handleOpcode (_contract);
@@ -265,7 +281,11 @@ void CommandLineInterface::handleBytecode(string const& _contract)
265281
266282void CommandLineInterface::handleSignatureHashes (string const & _contract)
267283{
268- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
284+ solAssert (
285+ m_options.input .mode == InputMode::Compiler ||
286+ m_options.input .mode == InputMode::CompilerWithASTImport ||
287+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
288+ );
269289
270290 if (!m_options.compiler .outputs .signatureHashes )
271291 return ;
@@ -297,7 +317,11 @@ void CommandLineInterface::handleSignatureHashes(string const& _contract)
297317
298318void CommandLineInterface::handleMetadata (string const & _contract)
299319{
300- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
320+ solAssert (
321+ m_options.input .mode == InputMode::Compiler ||
322+ m_options.input .mode == InputMode::CompilerWithASTImport ||
323+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
324+ );
301325
302326 if (!m_options.compiler .outputs .metadata )
303327 return ;
@@ -311,7 +335,11 @@ void CommandLineInterface::handleMetadata(string const& _contract)
311335
312336void CommandLineInterface::handleABI (string const & _contract)
313337{
314- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
338+ solAssert (
339+ m_options.input .mode == InputMode::Compiler ||
340+ m_options.input .mode == InputMode::CompilerWithASTImport ||
341+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
342+ );
315343
316344 if (!m_options.compiler .outputs .abi )
317345 return ;
@@ -325,7 +353,11 @@ void CommandLineInterface::handleABI(string const& _contract)
325353
326354void CommandLineInterface::handleStorageLayout (string const & _contract)
327355{
328- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
356+ solAssert (
357+ m_options.input .mode == InputMode::Compiler ||
358+ m_options.input .mode == InputMode::CompilerWithASTImport ||
359+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
360+ );
329361
330362 if (!m_options.compiler .outputs .storageLayout )
331363 return ;
@@ -339,7 +371,11 @@ void CommandLineInterface::handleStorageLayout(string const& _contract)
339371
340372void CommandLineInterface::handleNatspec (bool _natspecDev, string const & _contract)
341373{
342- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
374+ solAssert (
375+ m_options.input .mode == InputMode::Compiler ||
376+ m_options.input .mode == InputMode::CompilerWithASTImport ||
377+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
378+ );
343379
344380 bool enabled = false ;
345381 std::string suffix;
@@ -381,7 +417,11 @@ void CommandLineInterface::handleNatspec(bool _natspecDev, string const& _contra
381417
382418void CommandLineInterface::handleGasEstimation (string const & _contract)
383419{
384- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
420+ solAssert (
421+ m_options.input .mode == InputMode::Compiler ||
422+ m_options.input .mode == InputMode::CompilerWithASTImport ||
423+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
424+ );
385425
386426 Json::Value estimates = m_compiler->gasEstimates (_contract);
387427 sout () << " Gas estimation:" << endl;
0 commit comments