mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check State: windows build
This commit is contained in:
parent
32bde18a27
commit
ff5ce7bda3
@ -68,6 +68,8 @@ namespace test
|
|||||||
{
|
{
|
||||||
|
|
||||||
struct ValueTooLarge: virtual Exception {};
|
struct ValueTooLarge: virtual Exception {};
|
||||||
|
struct MissingFields : virtual Exception {};
|
||||||
|
|
||||||
bigint const c_max256plus1 = bigint(1) << 256;
|
bigint const c_max256plus1 = bigint(1) << 256;
|
||||||
|
|
||||||
ImportTest::ImportTest(json_spirit::mObject& _o, bool isFiller):
|
ImportTest::ImportTest(json_spirit::mObject& _o, bool isFiller):
|
||||||
@ -171,7 +173,11 @@ void ImportTest::importState(json_spirit::mObject& _o, State& _state)
|
|||||||
stateOptionsMap importedMap;
|
stateOptionsMap importedMap;
|
||||||
importState(_o, _state, importedMap);
|
importState(_o, _state, importedMap);
|
||||||
for (auto& stateOptionMap : importedMap)
|
for (auto& stateOptionMap : importedMap)
|
||||||
BOOST_CHECK_MESSAGE(stateOptionMap.second.isAllSet(), "Import State[" << stateOptionMap.first << "]: State is not complete!"); //check that every parameter was declared in state object
|
{
|
||||||
|
//check that every parameter was declared in state object
|
||||||
|
if (!stateOptionMap.second.isAllSet())
|
||||||
|
BOOST_THROW_EXCEPTION(MissingFields() << errinfo_comment("Import State: Missing state fields!"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportTest::importTransaction(json_spirit::mObject& _o)
|
void ImportTest::importTransaction(json_spirit::mObject& _o)
|
||||||
|
Loading…
Reference in New Issue
Block a user