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

Commit

Permalink
Change custom precompiles test to check that precompile list is ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Nov 26, 2019
1 parent cb5a0ad commit 6d50e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests/libethereum/ClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ BOOST_AUTO_TEST_CASE(ClientTest_setChainParamsAuthor)
BOOST_CHECK_EQUAL(testClient->author(), Address("0000000000000010000000000000000000000000"));
}

BOOST_AUTO_TEST_CASE(ClientTest_setChainParamsCustomPrecompiles)
BOOST_AUTO_TEST_CASE(ClientTest_setChainParamsPrecompilesAreIgnored)
{
ClientTest* testClient = asClientTest(getWeb3()->ethereum());
testClient->setChainParams(c_configString);
Expand Down Expand Up @@ -132,8 +132,8 @@ BOOST_AUTO_TEST_CASE(ClientTest_setChainParamsCustomPrecompiles)
testClient->setChainParams(configWithCustomPrecompiles);

BOOST_CHECK_EQUAL(
testClient->chainParams().precompiled.at(ecrecoverAddress).startingBlock(), 0x28d138);
BOOST_CHECK(!contains(testClient->chainParams().precompiled, sha256Address));
testClient->chainParams().precompiled.at(ecrecoverAddress).startingBlock(), 0);
BOOST_CHECK(contains(testClient->chainParams().precompiled, sha256Address));
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 6d50e27

Please sign in to comment.