executive tests fixed

Conflicts:
	src/executive.rs
This commit is contained in:
debris
2016-01-16 04:59:53 +01:00
committed by Tomusdrw
parent a1a4c5a068
commit fa1f0d1cf4
4 changed files with 29 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ impl<'a> Ext for TestExt<'a> {
output: &mut [u8]) -> Result<(U256, bool), evm::Error> {
let res = self.ext.call(gas, call_gas, receive_address, value, data, code_address, output);
let ext = &self.ext;
if let &Ok(_some) = &res {
if let &Ok((gas_left, _)) = &res {
if ext.state.balance(&ext.params.address) >= *value {
self.callcreates.push(CallCreate {
data: data.to_vec(),
@@ -126,6 +126,7 @@ impl<'a> Ext for TestExt<'a> {
_gas_limit: *call_gas,
value: *value
});
return Ok((gas_left, true))
}
}
res