Skip to content

Commit

Permalink
core: handle ignored error (#16065)
Browse files Browse the repository at this point in the history
- according to implementation of `IntrinsicGas`
we can continue execution since problem will be detected
later. However, early return is future-proof for changes.
  • Loading branch information
ferhatelmas authored and karalabe committed Feb 14, 2018
1 parent ff225db commit dc7ca52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit dc7ca52

Please sign in to comment.