core: handle ignored error (#16065)

- according to implementation of `IntrinsicGas`
we can continue execution since problem will be detected
later. However, early return is future-proof for changes.
This commit is contained in:
ferhat elmas 2018-02-14 21:02:51 +01:00 committed by Péter Szilágyi
parent ff225db813
commit dc7ca52b3b
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,9 @@ func (st *StateTransition) TransitionDb() (ret []byte, usedGas uint64, failed bo
// Pay intrinsic gas
gas, err := IntrinsicGas(st.data, contractCreation, homestead)
if err != nil {
return nil, 0, false, err
}
if err = st.useGas(gas); err != nil {
return nil, 0, false, err
}