aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-25 19:37:13 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-25 19:37:13 +0800
commitc930068c77be57007cb79b36ae69c820fbaf5c57 (patch)
tree2d20a2ffc0ed29b45c9eaf05dfe0e9f8ce2257c5
parent396075717f6f9e691af69b39a03c770a48ffdf91 (diff)
downloaddexon-solidity-c930068c77be57007cb79b36ae69c820fbaf5c57.tar.gz
dexon-solidity-c930068c77be57007cb79b36ae69c820fbaf5c57.tar.zst
dexon-solidity-c930068c77be57007cb79b36ae69c820fbaf5c57.zip
Re-adding braces to if in test/Assembly.cpp
-rw-r--r--Assembly.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Assembly.cpp b/Assembly.cpp
index bad8233d..3869919e 100644
--- a/Assembly.cpp
+++ b/Assembly.cpp
@@ -54,10 +54,14 @@ eth::AssemblyItems compileContract(const string& _sourceCode)
resolver.registerDeclarations(*sourceUnit);
for (ASTPointer<ASTNode> const& node: sourceUnit->getNodes())
if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get()))
+ {
BOOST_REQUIRE_NO_THROW(resolver.resolveNamesAndTypes(*contract));
+ }
for (ASTPointer<ASTNode> const& node: sourceUnit->getNodes())
if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get()))
+ {
BOOST_REQUIRE_NO_THROW(resolver.checkTypeRequirements(*contract));
+ }
for (ASTPointer<ASTNode> const& node: sourceUnit->getNodes())
if (ContractDefinition* contract = dynamic_cast<ContractDefinition*>(node.get()))
{