Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix eth_getTransactionReceipts #523

Merged
merged 4 commits into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
Comment on lines +232 to +234

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change gth

}
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
Loading