aboutsummaryrefslogtreecommitdiffstats
path: root/commonjs.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-02-05 03:26:58 +0800
committerGav Wood <i@gavwood.com>2015-02-05 03:26:58 +0800
commit969366f46b83c57461fc5399fff76bd07738b6f2 (patch)
tree714bdb106e485d79df0a769ad728cdba70edde45 /commonjs.cpp
parent8b8097ec030e4cffcbd7e30487ba8581d46782b6 (diff)
downloaddexon-solidity-969366f46b83c57461fc5399fff76bd07738b6f2.tar.gz
dexon-solidity-969366f46b83c57461fc5399fff76bd07738b6f2.tar.zst
dexon-solidity-969366f46b83c57461fc5399fff76bd07738b6f2.zip
Move CommonJS to libethcore. Split it up ready for refactoring into
libdevcore/libdevcrypto.
Diffstat (limited to 'commonjs.cpp')
-rw-r--r--commonjs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/commonjs.cpp b/commonjs.cpp
index 860b713d..041a14f6 100644
--- a/commonjs.cpp
+++ b/commonjs.cpp
@@ -20,7 +20,8 @@
*/
#include <boost/test/unit_test.hpp>
-#include <libdevcore/CommonJS.h>
+#include <libdevcore/Log.h>
+#include <libethcore/CommonJS.h>
BOOST_AUTO_TEST_SUITE(commonjs)
using namespace std;
@@ -41,7 +42,7 @@ BOOST_AUTO_TEST_CASE(jsToAddress)
cnote << "Testing jsToPublic...";
KeyPair kp = KeyPair::create();
string string = toJS(kp.address());
- Address address = dev::jsToAddress(string);
+ Address address = dev::eth::jsToAddress(string);
BOOST_CHECK_EQUAL(kp.address(), address);
}