builin fail should return 0 gas left
This commit is contained in:
parent
790a68a7ca
commit
87539234e3
@ -209,7 +209,7 @@ impl<'a> Executive<'a> {
|
|||||||
// just drain the whole gas
|
// just drain the whole gas
|
||||||
false => {
|
false => {
|
||||||
substate.excepted = true;
|
substate.excepted = true;
|
||||||
Ok(params.gas)
|
Ok(U256::zero())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if params.code.len() > 0 {
|
} else if params.code.len() > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user