|
|
@ -99,7 +99,7 @@ bool doVMTest(mValue& v) |
|
|
|
output = vm->go(fev, fev.simpleTrace()).toBytes(); |
|
|
|
gas = vm->gas(); |
|
|
|
} |
|
|
|
catch (eth::VMException const& _e) |
|
|
|
catch (eth::VMException) |
|
|
|
{ |
|
|
|
cnote << "Safe VM Exception"; |
|
|
|
vmExceptionOccured = true; |
|
|
@ -250,6 +250,24 @@ bool doVMTest(mValue& v) |
|
|
|
if (asserts(test.callcreates == fev.callcreates)) |
|
|
|
return 1; |
|
|
|
|
|
|
|
//checkCallCreates(fev.callcreates, test.callcreates);
|
|
|
|
{ |
|
|
|
if (assertsEqual(test.callcreates.size(), fev.callcreates.size())) |
|
|
|
return 1; |
|
|
|
|
|
|
|
for (size_t i = 0; i < test.callcreates.size(); ++i) |
|
|
|
{ |
|
|
|
if (asserts(test.callcreates[i].data() == fev.callcreates[i].data())) |
|
|
|
return 1; |
|
|
|
if (asserts(test.callcreates[i].receiveAddress() == fev.callcreates[i].receiveAddress())) |
|
|
|
return 1; |
|
|
|
if (asserts(test.callcreates[i].gas() == fev.callcreates[i].gas())) |
|
|
|
return 1; |
|
|
|
if (asserts(test.callcreates[i].value() == fev.callcreates[i].value())) |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//checkLog(fev.sub.logs, test.sub.logs);
|
|
|
|
{ |
|
|
|
if (assertsEqual(fev.sub.logs.size(), test.sub.logs.size())) |
|
|
|