mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check State
vmArithmeticTestFiller, memory test fix
This commit is contained in:
parent
d90dc70bb8
commit
fd1cccaf89
@ -131,7 +131,7 @@
|
|||||||
"expect" : {
|
"expect" : {
|
||||||
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
"0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
|
||||||
"storage" : {
|
"storage" : {
|
||||||
"0x" : "0x0100000020"
|
"0x" : "0x20"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
8
vm.cpp
8
vm.cpp
@ -390,10 +390,12 @@ void doVMTests(json_spirit::mValue& v, bool _fillin)
|
|||||||
|
|
||||||
if (o.count("expect") > 0)
|
if (o.count("expect") > 0)
|
||||||
{
|
{
|
||||||
State postState, expectState;
|
State postState(Address(), OverlayDB(), eth::BaseState::Empty);
|
||||||
|
State expectState(Address(), OverlayDB(), eth::BaseState::Empty);
|
||||||
|
stateOptionsMap expectStateMap;
|
||||||
ImportTest::importState(o["post"].get_obj(), postState);
|
ImportTest::importState(o["post"].get_obj(), postState);
|
||||||
ImportTest::importState(o["expect"].get_obj(), expectState);
|
ImportTest::importState(o["expect"].get_obj(), expectState, expectStateMap);
|
||||||
ImportTest::checkExpectedState(expectState, postState, Options::get().checkState ? WhenError::Throw : WhenError::DontThrow);
|
ImportTest::checkExpectedState(expectState, postState, expectStateMap, Options::get().checkState ? WhenError::Throw : WhenError::DontThrow);
|
||||||
o.erase(o.find("expect"));
|
o.erase(o.find("expect"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user