Make EVM version part of EVM dialect.

This commit is contained in:
chriseth
2019-02-21 21:59:46 +01:00
parent 773a3ff880
commit 7f5b335b47
20 changed files with 51 additions and 48 deletions
+2 -1
View File
@@ -1041,7 +1041,8 @@ ASTPointer<InlineAssembly> Parser::parseInlineAssembly(ASTPointer<ASTString> con
m_scanner->next();
}
yul::Parser asmParser(m_errorReporter, yul::EVMDialect::looseAssemblyForEVM());
// Using latest EVM Version for now, it will be run again later.
yul::Parser asmParser(m_errorReporter, yul::EVMDialect::looseAssemblyForEVM(EVMVersion::constantinople()));
shared_ptr<yul::Block> block = asmParser.parse(m_scanner, true);
if (block == nullptr)
BOOST_THROW_EXCEPTION(FatalError());