From 8e04b27252abf101a2899b5729fe012c159dab80 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Wed, 15 Apr 2015 13:28:49 +0200 Subject: [PATCH] fixed extension of file json format changed value for PUSH to hex --- CommandLineInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index cb924d9b5..182015709 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -430,7 +430,7 @@ void CommandLineInterface::actOnInput() if (outputToFile(choice)) { - ofstream outFile(contract + ".evm"); + ofstream outFile(contract + (m_args.count(g_argAsmJsonStr) ? "_evm.json" : ".evm")); m_compiler->streamAssembly(outFile, contract, m_sourceCodes, m_args.count(g_argAsmJsonStr)); outFile.close(); }