@@ -201,7 +201,11 @@ void CommandLineInterface::handleOpcode(string const& _contract)
201
201
202
202
void CommandLineInterface::handleIR (string const & _contractName)
203
203
{
204
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
204
+ solAssert (
205
+ m_options.input .mode == InputMode::Compiler ||
206
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
207
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
208
+ );
205
209
206
210
if (!m_options.compiler .outputs .ir )
207
211
return ;
@@ -217,7 +221,11 @@ void CommandLineInterface::handleIR(string const& _contractName)
217
221
218
222
void CommandLineInterface::handleIROptimized (string const & _contractName)
219
223
{
220
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
224
+ solAssert (
225
+ m_options.input .mode == InputMode::Compiler ||
226
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
227
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
228
+ );
221
229
222
230
if (!m_options.compiler .outputs .irOptimized )
223
231
return ;
@@ -233,7 +241,11 @@ void CommandLineInterface::handleIROptimized(string const& _contractName)
233
241
234
242
void CommandLineInterface::handleEwasm (string const & _contractName)
235
243
{
236
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
244
+ solAssert (
245
+ m_options.input .mode == InputMode::Compiler ||
246
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
247
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
248
+ );
237
249
238
250
if (!m_options.compiler .outputs .ewasm )
239
251
return ;
@@ -256,7 +268,11 @@ void CommandLineInterface::handleEwasm(string const& _contractName)
256
268
257
269
void CommandLineInterface::handleBytecode (string const & _contract)
258
270
{
259
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
271
+ solAssert (
272
+ m_options.input .mode == InputMode::Compiler ||
273
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
274
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
275
+ );
260
276
261
277
if (m_options.compiler .outputs .opcodes )
262
278
handleOpcode (_contract);
@@ -266,7 +282,11 @@ void CommandLineInterface::handleBytecode(string const& _contract)
266
282
267
283
void CommandLineInterface::handleSignatureHashes (string const & _contract)
268
284
{
269
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
285
+ solAssert (
286
+ m_options.input .mode == InputMode::Compiler ||
287
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
288
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
289
+ );
270
290
271
291
if (!m_options.compiler .outputs .signatureHashes )
272
292
return ;
@@ -298,7 +318,11 @@ void CommandLineInterface::handleSignatureHashes(string const& _contract)
298
318
299
319
void CommandLineInterface::handleMetadata (string const & _contract)
300
320
{
301
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
321
+ solAssert (
322
+ m_options.input .mode == InputMode::Compiler ||
323
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
324
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
325
+ );
302
326
303
327
if (!m_options.compiler .outputs .metadata )
304
328
return ;
@@ -312,7 +336,11 @@ void CommandLineInterface::handleMetadata(string const& _contract)
312
336
313
337
void CommandLineInterface::handleABI (string const & _contract)
314
338
{
315
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
339
+ solAssert (
340
+ m_options.input .mode == InputMode::Compiler ||
341
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
342
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
343
+ );
316
344
317
345
if (!m_options.compiler .outputs .abi )
318
346
return ;
@@ -326,7 +354,11 @@ void CommandLineInterface::handleABI(string const& _contract)
326
354
327
355
void CommandLineInterface::handleStorageLayout (string const & _contract)
328
356
{
329
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
357
+ solAssert (
358
+ m_options.input .mode == InputMode::Compiler ||
359
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
360
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
361
+ );
330
362
331
363
if (!m_options.compiler .outputs .storageLayout )
332
364
return ;
@@ -340,7 +372,11 @@ void CommandLineInterface::handleStorageLayout(string const& _contract)
340
372
341
373
void CommandLineInterface::handleNatspec (bool _natspecDev, string const & _contract)
342
374
{
343
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
375
+ solAssert (
376
+ m_options.input .mode == InputMode::Compiler ||
377
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
378
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
379
+ );
344
380
345
381
bool enabled = false ;
346
382
std::string suffix;
@@ -382,7 +418,11 @@ void CommandLineInterface::handleNatspec(bool _natspecDev, string const& _contra
382
418
383
419
void CommandLineInterface::handleGasEstimation (string const & _contract)
384
420
{
385
- solAssert (m_options.input .mode == InputMode::Compiler || m_options.input .mode == InputMode::CompilerWithASTImport, " " );
421
+ solAssert (
422
+ m_options.input .mode == InputMode::Compiler ||
423
+ m_options.input .mode == InputMode::CompilerWithASTImport ||
424
+ m_options.input .mode == InputMode::CompilerWithEvmAssemblyJsonImport, " "
425
+ );
386
426
387
427
Json::Value estimates = m_compiler->gasEstimates (_contract);
388
428
sout () << " Gas estimation:" << endl;
0 commit comments