Skip to content

Commit

Permalink
Use more inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
pirapira committed Aug 18, 2017
1 parent 138e7e6 commit 02b9a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tools/jsontests/BlockChainTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ json_spirit::mObject fillBCTest(json_spirit::mObject const& _input)
{
json_spirit::mObject _o = _input;
string const& testName = TestOutputHelper::testName();
TestBlock genesisBlock(_o["genesisBlockHeader"].get_obj(), _o["pre"].get_obj());
TestBlock genesisBlock(_input.at("genesisBlockHeader").get_obj(), _input.at("pre").get_obj());
genesisBlock.setBlockHeader(genesisBlock.blockHeader());

TestBlockChain testChain(genesisBlock);
Expand All @@ -264,7 +264,7 @@ json_spirit::mObject fillBCTest(json_spirit::mObject const& _input)
string chainnetwork = "default";
std::map<string, ChainBranch*> chainMap = { {chainname , new ChainBranch(genesisBlock)}};

for (auto const& bl: _o["blocks"].get_array())
for (auto const& bl: _input.at("blocks").get_array())
{
mObject blObj = bl.get_obj();
if (blObj.count("blocknumber") > 0)
Expand Down

0 comments on commit 02b9a30

Please sign in to comment.