From 47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 3 Nov 2014 12:14:06 +0100 Subject: [PATCH 1/5] Bugfix: Swap before mod and div. --- solidityCompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp index e08605110..e024043e4 100644 --- a/solidityCompiler.cpp +++ b/solidityCompiler.cpp @@ -193,7 +193,9 @@ BOOST_AUTO_TEST_CASE(arithmetics) byte(eth::Instruction::SWAP1), byte(eth::Instruction::SUB), byte(eth::Instruction::ADD), + byte(eth::Instruction::SWAP1), byte(eth::Instruction::MOD), + byte(eth::Instruction::SWAP1), byte(eth::Instruction::DIV), byte(eth::Instruction::MUL)}); BOOST_CHECK_EQUAL_COLLECTIONS(code.begin(), code.end(), expectation.begin(), expectation.end()); From 2d7176b79c42f9969fbab69e9d3af121af422a7f Mon Sep 17 00:00:00 2001 From: subtly Date: Tue, 4 Nov 2014 10:56:22 +0100 Subject: [PATCH 2/5] json rpc only runs once, and only when json rpc test suite is invoked --- jsonrpc.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 033339ec2..53f51ecad 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -43,9 +43,6 @@ using namespace dev; using namespace dev::eth; namespace js = json_spirit; -namespace jsonrpc_tests -{ - string name = "Ethereum(++) tests"; string dbPath; auto s = set{"eth", "shh"}; @@ -74,7 +71,7 @@ struct JsonrpcFixture { } }; -BOOST_GLOBAL_FIXTURE(JsonrpcFixture) +const JsonrpcFixture testJsonRpcServer; BOOST_AUTO_TEST_CASE(jsonrpc_defaultBlock) { @@ -243,8 +240,6 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) BOOST_CHECK_EQUAL(txAmount, balance2); } -} - BOOST_AUTO_TEST_SUITE_END() #endif From 919d3c56eb030cb0a79a48f4f1f75d5cab727c59 Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Fri, 31 Oct 2014 13:54:24 +0100 Subject: [PATCH 3/5] # This is a combination of 2 commits. # The first commit's message is: Merge pull request #454 from jorisbontje/423-dockerfile update Dockerfile with cryptopp and jsonrpc dependencies, fixes #423 Cleaned up jsonrpc test # This is the 2nd commit message: Forgot the #if --- jsonrpc.cpp | 54 ++++++++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 033339ec2..793d6a6e3 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -36,8 +36,6 @@ #include "TestHelper.h" #include "webthreestubclient.h" -BOOST_AUTO_TEST_SUITE(jsonrpc) - using namespace std; using namespace dev; using namespace dev::eth; @@ -46,35 +44,34 @@ namespace js = json_spirit; namespace jsonrpc_tests { -string name = "Ethereum(++) tests"; -string dbPath; -auto s = set{"eth", "shh"}; -dev::p2p::NetworkPreferences np(30303, std::string(), false); -dev::WebThreeDirect web3(name, dbPath, true, s, np); - -unique_ptr jsonrpcServer; -unique_ptr jsonrpcClient; - struct JsonrpcFixture { - JsonrpcFixture() + JsonrpcFixture():web3(name, dbPath, true, set{"eth", "shh"}, dev::p2p::NetworkPreferences(30303, std::string(), false)) { cnote << "setup jsonrpc"; + name = "Ethereum(++) tests"; web3.setIdealPeerCount(5); web3.ethereum()->setForceMining(true); jsonrpcServer = unique_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(8080), web3, {})); jsonrpcServer->setIdentities({}); jsonrpcServer->StartListening(); - + jsonrpcClient = unique_ptr(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080"))); } ~JsonrpcFixture() { cnote << "teardown jsonrpc"; } + + string name; + string dbPath; + unique_ptr jsonrpcServer; + unique_ptr jsonrpcClient; + dev::WebThreeDirect web3; + }; -BOOST_GLOBAL_FIXTURE(JsonrpcFixture) +BOOST_FIXTURE_TEST_SUITE(jsonrpc, JsonrpcFixture) BOOST_AUTO_TEST_CASE(jsonrpc_defaultBlock) { @@ -97,7 +94,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_isListening) web3.startNetwork(); bool listeningOn = jsonrpcClient->listening(); BOOST_CHECK_EQUAL(listeningOn, web3.isNetworkStarted()); - + web3.stopNetwork(); bool listeningOff = jsonrpcClient->listening(); BOOST_CHECK_EQUAL(listeningOff, web3.isNetworkStarted()); @@ -159,7 +156,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_setListening) jsonrpcClient->setListening(true); BOOST_CHECK_EQUAL(web3.isNetworkStarted(), true); - + jsonrpcClient->setListening(false); BOOST_CHECK_EQUAL(web3.isNetworkStarted(), false); } @@ -189,7 +186,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) cnote << "Testing jsonrpc transact..."; string coinbase = jsonrpcClient->coinbase(); BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); - + dev::KeyPair key = KeyPair::create(); auto address = key.address(); auto receiver = KeyPair::create(); @@ -198,28 +195,28 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) coinbase = jsonrpcClient->coinbase(); BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); BOOST_CHECK_EQUAL(jsToAddress(coinbase), address); - + jsonrpcServer->setAccounts({key}); auto balance = web3.ethereum()->balanceAt(address, 0); string balanceString = jsonrpcClient->balanceAt(toJS(address)); double countAt = jsonrpcClient->countAt(toJS(address)); - + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 0); BOOST_CHECK_EQUAL(toJS(balance), balanceString); BOOST_CHECK_EQUAL(jsToDecimal(balanceString), "0"); - + dev::eth::mine(*(web3.ethereum()), 1); balance = web3.ethereum()->balanceAt(address, 0); balanceString = jsonrpcClient->balanceAt(toJS(address)); - + BOOST_CHECK_EQUAL(toJS(balance), balanceString); BOOST_CHECK_EQUAL(jsToDecimal(balanceString), "1500000000000000000"); - + auto txAmount = balance / 2u; auto gasPrice = 10 * dev::eth::szabo; auto gas = dev::eth::c_txGas; - + Json::Value t; t["from"] = toJS(address); t["value"] = jsToDecimal(toJS(txAmount)); @@ -227,24 +224,21 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) t["data"] = toJS(bytes()); t["gas"] = toJS(gas); t["gasPrice"] = toJS(gasPrice); - + jsonrpcClient->transact(t); jsonrpcServer->setAccounts({}); dev::eth::mine(*(web3.ethereum()), 1); - + countAt = jsonrpcClient->countAt(toJS(address)); auto balance2 = web3.ethereum()->balanceAt(receiver.address()); string balanceString2 = jsonrpcClient->balanceAt(toJS(receiver.address())); - + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 1); BOOST_CHECK_EQUAL(toJS(balance2), balanceString2); BOOST_CHECK_EQUAL(jsToDecimal(balanceString2), "750000000000000000"); BOOST_CHECK_EQUAL(txAmount, balance2); } - + BOOST_AUTO_TEST_SUITE_END() } - -BOOST_AUTO_TEST_SUITE_END() - #endif From 37939c565d8155722bebd789d675a48222189733 Mon Sep 17 00:00:00 2001 From: Christoph Jentzsch Date: Tue, 4 Nov 2014 13:43:13 +0100 Subject: [PATCH 4/5] Merge pull request #454 from jorisbontje/423-dockerfile update Dockerfile with cryptopp and jsonrpc dependencies, fixes #423 Cleaned up jsonrpc test Forgot the #if Undo jsonrpc test changes --- jsonrpc.cpp | 54 +++++++++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 793d6a6e3..033339ec2 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -36,6 +36,8 @@ #include "TestHelper.h" #include "webthreestubclient.h" +BOOST_AUTO_TEST_SUITE(jsonrpc) + using namespace std; using namespace dev; using namespace dev::eth; @@ -44,34 +46,35 @@ namespace js = json_spirit; namespace jsonrpc_tests { +string name = "Ethereum(++) tests"; +string dbPath; +auto s = set{"eth", "shh"}; +dev::p2p::NetworkPreferences np(30303, std::string(), false); +dev::WebThreeDirect web3(name, dbPath, true, s, np); + +unique_ptr jsonrpcServer; +unique_ptr jsonrpcClient; + struct JsonrpcFixture { - JsonrpcFixture():web3(name, dbPath, true, set{"eth", "shh"}, dev::p2p::NetworkPreferences(30303, std::string(), false)) + JsonrpcFixture() { cnote << "setup jsonrpc"; - name = "Ethereum(++) tests"; web3.setIdealPeerCount(5); web3.ethereum()->setForceMining(true); jsonrpcServer = unique_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(8080), web3, {})); jsonrpcServer->setIdentities({}); jsonrpcServer->StartListening(); - + jsonrpcClient = unique_ptr(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080"))); } ~JsonrpcFixture() { cnote << "teardown jsonrpc"; } - - string name; - string dbPath; - unique_ptr jsonrpcServer; - unique_ptr jsonrpcClient; - dev::WebThreeDirect web3; - }; -BOOST_FIXTURE_TEST_SUITE(jsonrpc, JsonrpcFixture) +BOOST_GLOBAL_FIXTURE(JsonrpcFixture) BOOST_AUTO_TEST_CASE(jsonrpc_defaultBlock) { @@ -94,7 +97,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_isListening) web3.startNetwork(); bool listeningOn = jsonrpcClient->listening(); BOOST_CHECK_EQUAL(listeningOn, web3.isNetworkStarted()); - + web3.stopNetwork(); bool listeningOff = jsonrpcClient->listening(); BOOST_CHECK_EQUAL(listeningOff, web3.isNetworkStarted()); @@ -156,7 +159,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_setListening) jsonrpcClient->setListening(true); BOOST_CHECK_EQUAL(web3.isNetworkStarted(), true); - + jsonrpcClient->setListening(false); BOOST_CHECK_EQUAL(web3.isNetworkStarted(), false); } @@ -186,7 +189,7 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) cnote << "Testing jsonrpc transact..."; string coinbase = jsonrpcClient->coinbase(); BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); - + dev::KeyPair key = KeyPair::create(); auto address = key.address(); auto receiver = KeyPair::create(); @@ -195,28 +198,28 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) coinbase = jsonrpcClient->coinbase(); BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); BOOST_CHECK_EQUAL(jsToAddress(coinbase), address); - + jsonrpcServer->setAccounts({key}); auto balance = web3.ethereum()->balanceAt(address, 0); string balanceString = jsonrpcClient->balanceAt(toJS(address)); double countAt = jsonrpcClient->countAt(toJS(address)); - + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 0); BOOST_CHECK_EQUAL(toJS(balance), balanceString); BOOST_CHECK_EQUAL(jsToDecimal(balanceString), "0"); - + dev::eth::mine(*(web3.ethereum()), 1); balance = web3.ethereum()->balanceAt(address, 0); balanceString = jsonrpcClient->balanceAt(toJS(address)); - + BOOST_CHECK_EQUAL(toJS(balance), balanceString); BOOST_CHECK_EQUAL(jsToDecimal(balanceString), "1500000000000000000"); - + auto txAmount = balance / 2u; auto gasPrice = 10 * dev::eth::szabo; auto gas = dev::eth::c_txGas; - + Json::Value t; t["from"] = toJS(address); t["value"] = jsToDecimal(toJS(txAmount)); @@ -224,21 +227,24 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) t["data"] = toJS(bytes()); t["gas"] = toJS(gas); t["gasPrice"] = toJS(gasPrice); - + jsonrpcClient->transact(t); jsonrpcServer->setAccounts({}); dev::eth::mine(*(web3.ethereum()), 1); - + countAt = jsonrpcClient->countAt(toJS(address)); auto balance2 = web3.ethereum()->balanceAt(receiver.address()); string balanceString2 = jsonrpcClient->balanceAt(toJS(receiver.address())); - + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 1); BOOST_CHECK_EQUAL(toJS(balance2), balanceString2); BOOST_CHECK_EQUAL(jsToDecimal(balanceString2), "750000000000000000"); BOOST_CHECK_EQUAL(txAmount, balance2); } - BOOST_AUTO_TEST_SUITE_END() + } + +BOOST_AUTO_TEST_SUITE_END() + #endif From 838b6b4b442dca1a10b485c564baa3f9be675b1e Mon Sep 17 00:00:00 2001 From: subtly Date: Tue, 4 Nov 2014 15:24:02 +0100 Subject: [PATCH 5/5] coding standards. suite setup struct. --- jsonrpc.cpp | 91 ++++++++++++++++++++++++++--------------------------- 1 file changed, 45 insertions(+), 46 deletions(-) diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 53f51ecad..68c30734a 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -43,41 +43,39 @@ using namespace dev; using namespace dev::eth; namespace js = json_spirit; -string name = "Ethereum(++) tests"; -string dbPath; -auto s = set{"eth", "shh"}; -dev::p2p::NetworkPreferences np(30303, std::string(), false); -dev::WebThreeDirect web3(name, dbPath, true, s, np); - +WebThreeDirect *web3; unique_ptr jsonrpcServer; unique_ptr jsonrpcClient; -struct JsonrpcFixture { - JsonrpcFixture() +struct Setup +{ + Setup() { - cnote << "setup jsonrpc"; + static bool setup = false; + if (setup) + return; + setup = true; - web3.setIdealPeerCount(5); - web3.ethereum()->setForceMining(true); - jsonrpcServer = unique_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(8080), web3, {})); + dev::p2p::NetworkPreferences nprefs(30303, std::string(), false); + web3 = new WebThreeDirect("Ethereum(++) tests", "", true, {"eth", "shh"}, nprefs); + + web3->setIdealPeerCount(5); + web3->ethereum()->setForceMining(true); + jsonrpcServer = unique_ptr(new WebThreeStubServer(new jsonrpc::CorsHttpServer(8080), *web3, {})); jsonrpcServer->setIdentities({}); jsonrpcServer->StartListening(); jsonrpcClient = unique_ptr(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080"))); } - ~JsonrpcFixture() - { - cnote << "teardown jsonrpc"; - } }; -const JsonrpcFixture testJsonRpcServer; +BOOST_FIXTURE_TEST_SUITE(environment, Setup) BOOST_AUTO_TEST_CASE(jsonrpc_defaultBlock) { cnote << "Testing jsonrpc defaultBlock..."; int defaultBlock = jsonrpcClient->defaultBlock(); - BOOST_CHECK_EQUAL(defaultBlock, web3.ethereum()->getDefault()); + BOOST_CHECK_EQUAL(defaultBlock, web3->ethereum()->getDefault()); } BOOST_AUTO_TEST_CASE(jsonrpc_gasPrice) @@ -91,26 +89,26 @@ BOOST_AUTO_TEST_CASE(jsonrpc_isListening) { cnote << "Testing jsonrpc isListening..."; - web3.startNetwork(); + web3->startNetwork(); bool listeningOn = jsonrpcClient->listening(); - BOOST_CHECK_EQUAL(listeningOn, web3.isNetworkStarted()); + BOOST_CHECK_EQUAL(listeningOn, web3->isNetworkStarted()); - web3.stopNetwork(); + web3->stopNetwork(); bool listeningOff = jsonrpcClient->listening(); - BOOST_CHECK_EQUAL(listeningOff, web3.isNetworkStarted()); + BOOST_CHECK_EQUAL(listeningOff, web3->isNetworkStarted()); } BOOST_AUTO_TEST_CASE(jsonrpc_isMining) { cnote << "Testing jsonrpc isMining..."; - web3.ethereum()->startMining(); + web3->ethereum()->startMining(); bool miningOn = jsonrpcClient->mining(); - BOOST_CHECK_EQUAL(miningOn, web3.ethereum()->isMining()); + BOOST_CHECK_EQUAL(miningOn, web3->ethereum()->isMining()); - web3.ethereum()->stopMining(); + web3->ethereum()->stopMining(); bool miningOff = jsonrpcClient->mining(); - BOOST_CHECK_EQUAL(miningOff, web3.ethereum()->isMining()); + BOOST_CHECK_EQUAL(miningOff, web3->ethereum()->isMining()); } BOOST_AUTO_TEST_CASE(jsonrpc_accounts) @@ -136,18 +134,18 @@ BOOST_AUTO_TEST_CASE(jsonrpc_number) { cnote << "Testing jsonrpc number2..."; int number = jsonrpcClient->number(); - BOOST_CHECK_EQUAL(number, web3.ethereum()->number() + 1); - dev::eth::mine(*(web3.ethereum()), 1); + BOOST_CHECK_EQUAL(number, web3->ethereum()->number() + 1); + dev::eth::mine(*(web3->ethereum()), 1); int numberAfter = jsonrpcClient->number(); BOOST_CHECK_EQUAL(number + 1, numberAfter); - BOOST_CHECK_EQUAL(numberAfter, web3.ethereum()->number() + 1); + BOOST_CHECK_EQUAL(numberAfter, web3->ethereum()->number() + 1); } BOOST_AUTO_TEST_CASE(jsonrpc_peerCount) { cnote << "Testing jsonrpc peerCount..."; int peerCount = jsonrpcClient->peerCount(); - BOOST_CHECK_EQUAL(web3.peerCount(), peerCount); + BOOST_CHECK_EQUAL(web3->peerCount(), peerCount); } BOOST_AUTO_TEST_CASE(jsonrpc_setListening) @@ -155,10 +153,10 @@ BOOST_AUTO_TEST_CASE(jsonrpc_setListening) cnote << "Testing jsonrpc setListening..."; jsonrpcClient->setListening(true); - BOOST_CHECK_EQUAL(web3.isNetworkStarted(), true); + BOOST_CHECK_EQUAL(web3->isNetworkStarted(), true); jsonrpcClient->setListening(false); - BOOST_CHECK_EQUAL(web3.isNetworkStarted(), false); + BOOST_CHECK_EQUAL(web3->isNetworkStarted(), false); } BOOST_AUTO_TEST_CASE(jsonrpc_setMining) @@ -166,10 +164,10 @@ BOOST_AUTO_TEST_CASE(jsonrpc_setMining) cnote << "Testing jsonrpc setMining..."; jsonrpcClient->setMining(true); - BOOST_CHECK_EQUAL(web3.ethereum()->isMining(), true); + BOOST_CHECK_EQUAL(web3->ethereum()->isMining(), true); jsonrpcClient->setMining(false); - BOOST_CHECK_EQUAL(web3.ethereum()->isMining(), false); + BOOST_CHECK_EQUAL(web3->ethereum()->isMining(), false); } BOOST_AUTO_TEST_CASE(jsonrpc_stateAt) @@ -178,36 +176,36 @@ BOOST_AUTO_TEST_CASE(jsonrpc_stateAt) dev::KeyPair key = KeyPair::create(); auto address = key.address(); string stateAt = jsonrpcClient->stateAt(toJS(address), "0"); - BOOST_CHECK_EQUAL(toJS(web3.ethereum()->stateAt(address, jsToU256("0"), 0)), stateAt); + BOOST_CHECK_EQUAL(toJS(web3->ethereum()->stateAt(address, jsToU256("0"), 0)), stateAt); } BOOST_AUTO_TEST_CASE(jsonrpc_transact) { cnote << "Testing jsonrpc transact..."; string coinbase = jsonrpcClient->coinbase(); - BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); + BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3->ethereum()->address()); dev::KeyPair key = KeyPair::create(); auto address = key.address(); auto receiver = KeyPair::create(); - web3.ethereum()->setAddress(address); + web3->ethereum()->setAddress(address); coinbase = jsonrpcClient->coinbase(); - BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3.ethereum()->address()); + BOOST_CHECK_EQUAL(jsToAddress(coinbase), web3->ethereum()->address()); BOOST_CHECK_EQUAL(jsToAddress(coinbase), address); jsonrpcServer->setAccounts({key}); - auto balance = web3.ethereum()->balanceAt(address, 0); + auto balance = web3->ethereum()->balanceAt(address, 0); string balanceString = jsonrpcClient->balanceAt(toJS(address)); double countAt = jsonrpcClient->countAt(toJS(address)); - BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3->ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 0); BOOST_CHECK_EQUAL(toJS(balance), balanceString); BOOST_CHECK_EQUAL(jsToDecimal(balanceString), "0"); - dev::eth::mine(*(web3.ethereum()), 1); - balance = web3.ethereum()->balanceAt(address, 0); + dev::eth::mine(*(web3->ethereum()), 1); + balance = web3->ethereum()->balanceAt(address, 0); balanceString = jsonrpcClient->balanceAt(toJS(address)); BOOST_CHECK_EQUAL(toJS(balance), balanceString); @@ -227,19 +225,20 @@ BOOST_AUTO_TEST_CASE(jsonrpc_transact) jsonrpcClient->transact(t); jsonrpcServer->setAccounts({}); - dev::eth::mine(*(web3.ethereum()), 1); + dev::eth::mine(*(web3->ethereum()), 1); countAt = jsonrpcClient->countAt(toJS(address)); - auto balance2 = web3.ethereum()->balanceAt(receiver.address()); + auto balance2 = web3->ethereum()->balanceAt(receiver.address()); string balanceString2 = jsonrpcClient->balanceAt(toJS(receiver.address())); - BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3.ethereum()->countAt(address)); + BOOST_CHECK_EQUAL(countAt, (double)(uint64_t)web3->ethereum()->countAt(address)); BOOST_CHECK_EQUAL(countAt, 1); BOOST_CHECK_EQUAL(toJS(balance2), balanceString2); BOOST_CHECK_EQUAL(jsToDecimal(balanceString2), "750000000000000000"); BOOST_CHECK_EQUAL(txAmount, balance2); } - + +BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE_END() #endif