fixed builtin outofgas
This commit is contained in:
parent
888b98a0e7
commit
952efb93ac
@ -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(params.gas)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} 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
|
||||||
|
Loading…
Reference in New Issue
Block a user