executive tests fixed
Conflicts: src/executive.rs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user