diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-14 07:21:52 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-14 07:21:52 +0800 |
commit | 9d1f54434717f016c2daf259e86ac0077b364117 (patch) | |
tree | 7a78e99857edb01494cc1064002c58d9122c22cd /jsonrpc.cpp | |
parent | 074d0a7c90af266436d3e42f3cc90035a73d307e (diff) | |
download | dexon-solidity-9d1f54434717f016c2daf259e86ac0077b364117.tar.gz dexon-solidity-9d1f54434717f016c2daf259e86ac0077b364117.tar.zst dexon-solidity-9d1f54434717f016c2daf259e86ac0077b364117.zip |
common changes
Diffstat (limited to 'jsonrpc.cpp')
-rw-r--r-- | jsonrpc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 4d486e60..4a60ee06 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -50,15 +50,15 @@ struct JsonrpcFixture { cnote << "teardown jsonrpc"; } }; - + BOOST_GLOBAL_FIXTURE(JsonrpcFixture) BOOST_AUTO_TEST_CASE(jsonrpc_balanceAt) { cnote << "Testing jsonrpc balanceAt..."; - dev::KeyPair pair = keys[0]; -// string balance = jsonrpcClient->balanceAt(toJS(pair.address())); - + auto address = keys[0].address(); + string balance = jsonrpcClient->balanceAt(toJS(address), 0); + BOOST_CHECK_EQUAL(jsToDecimal(toJS(web3.ethereum()->balanceAt(address))), balance); } BOOST_AUTO_TEST_CASE(jsonrpc_block) |