Merge pull request #123 from gavofyork/state_tests_fixes

builtin sets excepted to true
This commit is contained in:
Gav Wood 2016-01-15 12:06:11 +01:00
commit b5a4066d81

View File

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