diff options
author | debris <marek.kotewicz@gmail.com> | 2014-12-09 07:58:02 +0800 |
---|---|---|
committer | debris <marek.kotewicz@gmail.com> | 2014-12-09 07:58:02 +0800 |
commit | 4d00b3d6fec597b0b082c545cbacc68e98f72334 (patch) | |
tree | a467f08eaec0e56d2e2b1588403cd38402f68d76 /jsonrpc.cpp | |
parent | 889740217fd90c90da1254a8503e911ba35e6abe (diff) | |
download | dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar.gz dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar.bz2 dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar.lz dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar.xz dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.tar.zst dexon-solidity-4d00b3d6fec597b0b082c545cbacc68e98f72334.zip |
msvc changes in tests, but tests not yet working there
Diffstat (limited to 'jsonrpc.cpp')
-rw-r--r-- | jsonrpc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 3c172538..5a9b94eb 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -62,7 +62,7 @@ struct Setup web3->setIdealPeerCount(5); web3->ethereum()->setForceMining(true); - auto server = new jsonrpc::CorsHttpServer(8080); + auto server = new jsonrpc::HttpServer(8080); jsonrpcServer = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(*server, *web3, {})); jsonrpcServer->setIdentities({}); jsonrpcServer->StartListening(); @@ -302,8 +302,11 @@ BOOST_AUTO_TEST_CASE(contract_storage) Json::Value storage = jsonrpcClient->eth_storageAt(contractAddress); BOOST_CHECK_EQUAL(storage.getMemberNames().size(), 1); + // bracers are required, cause msvc couldnt handle this macro in for statement for (auto name: storage.getMemberNames()) + { BOOST_CHECK_EQUAL(storage[name].asString(), "0x03"); + } } BOOST_AUTO_TEST_SUITE_END() |