aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-07-28 06:16:53 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-07-28 19:00:36 +0800
commit7c509137cfea7373628f74d8c4fd94e78eb26cbb (patch)
treef04f3e4e04e15a087d0a97f24ed8284095ca2be3 /test
parent705cbbc19a96c465b06973cd832c3674b956eba8 (diff)
downloaddexon-solidity-7c509137cfea7373628f74d8c4fd94e78eb26cbb.tar.gz
dexon-solidity-7c509137cfea7373628f74d8c4fd94e78eb26cbb.tar.zst
dexon-solidity-7c509137cfea7373628f74d8c4fd94e78eb26cbb.zip
Replace dev::eth namespace with dev::lll in LLL
Diffstat (limited to 'test')
-rw-r--r--test/contracts/LLL_ENS.cpp2
-rw-r--r--test/contracts/LLL_ERC20.cpp2
-rw-r--r--test/liblll/Compiler.cpp6
-rw-r--r--test/liblll/ExecutionFramework.h2
-rw-r--r--test/liblll/Parser.cpp4
5 files changed, 8 insertions, 8 deletions
diff --git a/test/contracts/LLL_ENS.cpp b/test/contracts/LLL_ENS.cpp
index 3461c577..cfd6970c 100644
--- a/test/contracts/LLL_ENS.cpp
+++ b/test/contracts/LLL_ENS.cpp
@@ -28,7 +28,7 @@
#define ACCOUNT(n) h256(account(n), h256::AlignRight)
using namespace std;
-using namespace dev::eth;
+using namespace dev::lll;
namespace dev
{
diff --git a/test/contracts/LLL_ERC20.cpp b/test/contracts/LLL_ERC20.cpp
index 89d1c4f0..6c6762dd 100644
--- a/test/contracts/LLL_ERC20.cpp
+++ b/test/contracts/LLL_ERC20.cpp
@@ -33,7 +33,7 @@
#define SUCCESS encodeArgs(1)
using namespace std;
-using namespace dev::eth;
+using namespace dev::lll;
namespace dev
{
diff --git a/test/liblll/Compiler.cpp b/test/liblll/Compiler.cpp
index ebdea185..1e6f6d87 100644
--- a/test/liblll/Compiler.cpp
+++ b/test/liblll/Compiler.cpp
@@ -46,7 +46,7 @@ namespace
bool successCompile(string const& _sourceCode)
{
vector<string> errors;
- bytes bytecode = eth::compileLLL(_sourceCode, dev::test::Options::get().evmVersion(), false, &errors);
+ bytes bytecode = lll::compileLLL(_sourceCode, dev::test::Options::get().evmVersion(), false, &errors);
if (!errors.empty())
return false;
if (bytecode.empty())
@@ -358,7 +358,7 @@ BOOST_AUTO_TEST_CASE(valid_opcodes_functional)
for (size_t i = 0; i < opcodes_bytecode.size(); i++) {
vector<string> errors;
- bytes code = eth::compileLLL(opcodes_lll[i], dev::test::Options::get().evmVersion(), false, &errors);
+ bytes code = lll::compileLLL(opcodes_lll[i], dev::test::Options::get().evmVersion(), false, &errors);
BOOST_REQUIRE_MESSAGE(errors.empty(), opcodes_lll[i]);
@@ -646,7 +646,7 @@ BOOST_AUTO_TEST_CASE(valid_opcodes_asm)
for (size_t i = 0; i < opcodes_bytecode.size(); i++) {
vector<string> errors;
- bytes code = eth::compileLLL(opcodes_lll[i], dev::test::Options::get().evmVersion(), false, &errors);
+ bytes code = lll::compileLLL(opcodes_lll[i], dev::test::Options::get().evmVersion(), false, &errors);
BOOST_REQUIRE_MESSAGE(errors.empty(), opcodes_lll[i]);
diff --git a/test/liblll/ExecutionFramework.h b/test/liblll/ExecutionFramework.h
index ae5cd988..7c1ce670 100644
--- a/test/liblll/ExecutionFramework.h
+++ b/test/liblll/ExecutionFramework.h
@@ -56,7 +56,7 @@ public:
BOOST_REQUIRE(_libraryAddresses.empty());
std::vector<std::string> errors;
- bytes bytecode = eth::compileLLL(_sourceCode, dev::test::Options::get().evmVersion(), m_optimize, &errors);
+ bytes bytecode = lll::compileLLL(_sourceCode, dev::test::Options::get().evmVersion(), m_optimize, &errors);
if (!errors.empty())
{
for (auto const& error: errors)
diff --git a/test/liblll/Parser.cpp b/test/liblll/Parser.cpp
index fc977b81..d343aab1 100644
--- a/test/liblll/Parser.cpp
+++ b/test/liblll/Parser.cpp
@@ -39,13 +39,13 @@ namespace
bool successParse(std::string const& _source)
{
- std::string ret = eth::parseLLL(_source);
+ std::string ret = lll::parseLLL(_source);
return ret.size() != 0;
}
std::string parse(std::string const& _source)
{
- return eth::parseLLL(_source);
+ return lll::parseLLL(_source);
}
}