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

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Jul 9, 2019
1 parent 5c12f9f commit 50c7156
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/unittests/libethereum/ExtVMTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ BOOST_AUTO_TEST_CASE(ScheduleAccordingToForkBeforeIstanbul)
{}, {}, 0, 0, false, false);

BOOST_CHECK_EQUAL(extVM.evmSchedule().accountVersion, 0);
BOOST_CHECK_EQUAL(&extVM.evmSchedule(), &ConstantinopleFixSchedule);
BOOST_CHECK(extVM.evmSchedule().haveCreate2 && !extVM.evmSchedule().eip1283Mode);
}

BOOST_AUTO_TEST_CASE(PetersburScheduleForVersionZeroInIstanbul)
BOOST_AUTO_TEST_CASE(PetersburgScheduleForVersionZeroInIstanbul)
{
Block block = blockchain.genesisBlock(genesisDB);
block.sync(blockchain, preIstanbulBlockHash);
block.sync(blockchain, istanbulBlockHash);

TestLastBlockHashes lastBlockHashes({});
EnvInfo envInfo(block.info(), lastBlockHashes, 0);
Expand All @@ -87,13 +87,13 @@ BOOST_AUTO_TEST_CASE(PetersburScheduleForVersionZeroInIstanbul)
{}, {}, version, 0, false, false);

BOOST_CHECK_EQUAL(extVM.evmSchedule().accountVersion, version);
BOOST_CHECK_EQUAL(&extVM.evmSchedule(), &ConstantinopleFixSchedule);
BOOST_CHECK(extVM.evmSchedule().haveCreate2 && !extVM.evmSchedule().eip1283Mode);
}

BOOST_AUTO_TEST_CASE(IstanbulScheduleForVersionOneInIstanbul)
{
Block block = blockchain.genesisBlock(genesisDB);
block.sync(blockchain, preIstanbulBlockHash);
block.sync(blockchain, istanbulBlockHash);

TestLastBlockHashes lastBlockHashes({});
EnvInfo envInfo(block.info(), lastBlockHashes, 0);
Expand All @@ -103,7 +103,6 @@ BOOST_AUTO_TEST_CASE(IstanbulScheduleForVersionOneInIstanbul)
{}, {}, version, 0, false, false);

BOOST_CHECK_EQUAL(extVM.evmSchedule().accountVersion, version);
BOOST_CHECK_EQUAL(&extVM.evmSchedule(), &IstanbulSchedule);
}


Expand Down

0 comments on commit 50c7156

Please sign in to comment.