fixed builtin outofgas

This commit is contained in:
debris 2016-01-15 11:39:10 +01:00
parent 888b98a0e7
commit 952efb93ac

View File

@ -207,7 +207,10 @@ impl<'a> Executive<'a> {
Ok(params.gas - cost)
},
// just drain the whole gas
false => Ok(U256::zero())
false => {
substate.excepted = true;
Ok(params.gas)
}
}
} else if params.code.len() > 0 {
// if destination is a contract, do normal message call