Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Fix order of arguments when constructing EnvInfo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Jul 24, 2019
1 parent 7b03ade commit 127fb8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/unittests/libethereum/ExecutiveTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExecutiveTest : public testing::Test
// called after blockHeader is set up
EnvInfo envInfo() const
{
return {blockHeader, lastBlockHashes, ethash.chainParams().chainID, 0};
return {blockHeader, lastBlockHashes, 0, ethash.chainParams().chainID};
}

Ethash ethash;
Expand Down
6 changes: 3 additions & 3 deletions test/unittests/libethereum/ExtVMTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ExtVMIstanbulTestFixture : public TestOutputHelperFixture

EnvInfo createEnvInfo(BlockHeader const& _header) const
{
return {_header, lastBlockHashes, blockchain.chainID(), 0};
return {_header, lastBlockHashes, 0, blockchain.chainID()};
}

NetworkSelector networkSelector;
Expand Down Expand Up @@ -134,7 +134,7 @@ class ExtVMExperimentalTestFixture : public TestOutputHelperFixture

EnvInfo createEnvInfo(BlockHeader const& _header) const
{
return {_header, lastBlockHashes, blockchain.chainID(), 0};
return {_header, lastBlockHashes, 0, blockchain.chainID()};
}

NetworkSelector networkSelector;
Expand Down Expand Up @@ -167,7 +167,7 @@ BOOST_AUTO_TEST_CASE(BlockhashBeforeExperimentalReliesOnLastHashes)

h256s lastHashes{h256("0xaaabbbccc"), h256("0xdddeeefff")};
TestLastBlockHashes lastBlockHashes(lastHashes);
EnvInfo envInfo{block.info(), lastBlockHashes, blockchain.chainID(), 0};
EnvInfo envInfo{block.info(), lastBlockHashes, 0, blockchain.chainID()};
Address addr("0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b");
ExtVM extVM(block.mutableState(), envInfo, *blockchain.sealEngine(), addr, addr, addr, 0, 0, {},
{}, {}, 0, 0, false, false);
Expand Down

0 comments on commit 127fb8f

Please sign in to comment.