diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-14 21:42:29 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-14 21:42:29 +0800 |
commit | 2606cf2b14c9e95888047c74c97aa4bf7de558a7 (patch) | |
tree | eeeebefc427025994a276e3d6ea9a50a000876dd | |
parent | b5e22cad46fa136f9ff6e57a74349b50ece34e44 (diff) | |
download | dexon-solidity-2606cf2b14c9e95888047c74c97aa4bf7de558a7.tar.gz dexon-solidity-2606cf2b14c9e95888047c74c97aa4bf7de558a7.tar.zst dexon-solidity-2606cf2b14c9e95888047c74c97aa4bf7de558a7.zip |
common changes
-rw-r--r-- | jsonrpc.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/jsonrpc.cpp b/jsonrpc.cpp index f04e3109..80354bc3 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -1,6 +1,6 @@ -//#if ETH_JSONRPC && 1 +#if ETH_JSONRPC && 1 #include <boost/test/unit_test.hpp> #include <libdevcore/Log.h> @@ -286,13 +286,18 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) dev::eth::mine(*(web3.ethereum()), 1); auto balance2 = web3.ethereum()->balanceAt(receiver.address()); + auto number = web3.ethereum()->number(); BOOST_REQUIRE(balance2 > 0); BOOST_CHECK_EQUAL(txAmount, balance2); + + // auto ax = jsToFixed(number); + // Json::Value p = jsonrpcClient->transaction(0, jsToFixed(number)); + // TODO, check transactions } BOOST_AUTO_TEST_CASE(jsonrpc_transaction) { - + } @@ -310,7 +315,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_watch) } -//#endif +#endif |