diff options
author | Gav Wood <i@gavwood.com> | 2015-02-05 03:26:58 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-02-05 03:26:58 +0800 |
commit | 969366f46b83c57461fc5399fff76bd07738b6f2 (patch) | |
tree | 714bdb106e485d79df0a769ad728cdba70edde45 /commonjs.cpp | |
parent | 8b8097ec030e4cffcbd7e30487ba8581d46782b6 (diff) | |
download | dexon-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.cpp | 5 |
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); } |