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

View File

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