aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/vm.cpp b/vm.cpp
index b6ebece1..a36a5707 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -390,10 +390,12 @@ void doVMTests(json_spirit::mValue& v, bool _fillin)
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["expect"].get_obj(), expectState);
- ImportTest::checkExpectedState(expectState, postState, Options::get().checkState ? WhenError::Throw : WhenError::DontThrow);
+ ImportTest::importState(o["expect"].get_obj(), expectState, expectStateMap);
+ ImportTest::checkExpectedState(expectState, postState, expectStateMap, Options::get().checkState ? WhenError::Throw : WhenError::DontThrow);
o.erase(o.find("expect"));
}