@@ -200,7 +200,11 @@ void CommandLineInterface::handleOpcode(string const& _contract)
200
200
201
201
void CommandLineInterface::handleIR (string const & _contractName)
202
202
{
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
+ );
204
208
205
209
if (!m_options.compiler .outputs .ir )
206
210
return ;
@@ -216,7 +220,11 @@ void CommandLineInterface::handleIR(string const& _contractName)
216
220
217
221
void CommandLineInterface::handleIROptimized (string const & _contractName)
218
222
{
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
+ );
220
228
221
229
if (!m_options.compiler .outputs .irOptimized )
222
230
return ;
@@ -232,7 +240,11 @@ void CommandLineInterface::handleIROptimized(string const& _contractName)
232
240
233
241
void CommandLineInterface::handleEwasm (string const & _contractName)
234
242
{
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
+ );
236
248
237
249
if (!m_options.compiler .outputs .ewasm )
238
250
return ;
@@ -255,7 +267,11 @@ void CommandLineInterface::handleEwasm(string const& _contractName)
255
267
256
268
void CommandLineInterface::handleBytecode (string const & _contract)
257
269
{
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
+ );
259
275
260
276
if (m_options.compiler .outputs .opcodes )
261
277
handleOpcode (_contract);
@@ -265,7 +281,11 @@ void CommandLineInterface::handleBytecode(string const& _contract)
265
281
266
282
void CommandLineInterface::handleSignatureHashes (string const & _contract)
267
283
{
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
+ );
269
289
270
290
if (!m_options.compiler .outputs .signatureHashes )
271
291
return ;
@@ -297,7 +317,11 @@ void CommandLineInterface::handleSignatureHashes(string const& _contract)
297
317
298
318
void CommandLineInterface::handleMetadata (string const & _contract)
299
319
{
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
+ );
301
325
302
326
if (!m_options.compiler .outputs .metadata )
303
327
return ;
@@ -311,7 +335,11 @@ void CommandLineInterface::handleMetadata(string const& _contract)
311
335
312
336
void CommandLineInterface::handleABI (string const & _contract)
313
337
{
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
+ );
315
343
316
344
if (!m_options.compiler .outputs .abi )
317
345
return ;
@@ -325,7 +353,11 @@ void CommandLineInterface::handleABI(string const& _contract)
325
353
326
354
void CommandLineInterface::handleStorageLayout (string const & _contract)
327
355
{
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
+ );
329
361
330
362
if (!m_options.compiler .outputs .storageLayout )
331
363
return ;
@@ -339,7 +371,11 @@ void CommandLineInterface::handleStorageLayout(string const& _contract)
339
371
340
372
void CommandLineInterface::handleNatspec (bool _natspecDev, string const & _contract)
341
373
{
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
+ );
343
379
344
380
bool enabled = false ;
345
381
std::string suffix;
@@ -381,7 +417,11 @@ void CommandLineInterface::handleNatspec(bool _natspecDev, string const& _contra
381
417
382
418
void CommandLineInterface::handleGasEstimation (string const & _contract)
383
419
{
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
+ );
385
425
386
426
Json::Value estimates = m_compiler->gasEstimates (_contract);
387
427
sout () << " Gas estimation:" << endl;
0 commit comments