Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
fix gas issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev Bear committed Nov 22, 2022
1 parent 391cfa9 commit 00d6565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func BlockGasLimit(ctx sdk.Context) uint64 {
maxGas := cp.Block.MaxGas
if maxGas > 0 {
return uint64(maxGas)
} else if maxGas == -1 {
return ^uint64(0)
}

return 0
Expand Down

0 comments on commit 00d6565

Please sign in to comment.