Skip to content

Commit

Permalink
Fix eth_getTransactionReceipts (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Sep 26, 2024
1 parent 46aa1f5 commit f10d0fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ func (st *StateTransition) buyGas(gasBailout bool) error {
}

if err := st.gp.SubGas(st.msg.Gas()); err != nil {
return err
if !gasBailout {
return err
}
}
st.gasRemaining += st.msg.Gas()
st.initialGas = st.msg.Gas()
Expand Down Expand Up @@ -335,7 +337,7 @@ func (st *StateTransition) TransitionDb(refunds bool, gasBailout bool) (*evmtype
// BSC always gave gas bailout due to system transactions that set 2^256/2 gas limit and
// So when trace systemTx, skip PreCheck
var skipCheck bool
if st.isParlia && st.evm.Config().Debug && st.msg.Gas() == math.MaxUint64/2 {
if st.isParlia && st.msg.Gas() == math.MaxUint64/2 && st.gasPrice.IsZero() {
skipCheck = true
}

Expand Down

0 comments on commit f10d0fe

Please sign in to comment.