builin fail should return 0 gas left

This commit is contained in:
debris 2016-01-15 11:59:05 +01:00
parent 790a68a7ca
commit 87539234e3

View File

@ -209,7 +209,7 @@ impl<'a> Executive<'a> {
// just drain the whole gas
false => {
substate.excepted = true;
Ok(params.gas)
Ok(U256::zero())
}
}
} else if params.code.len() > 0 {