Skip to content

Commit

Permalink
Update store/types/gas.go
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Jul 12, 2021
1 parent e450cec commit bfa7536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/types/gas.go
Expand Up @@ -83,7 +83,8 @@ func (g *basicGasMeter) Limit() Gas {

// GasConsumedToLimit returns the gas limit if gas consumed is past the limit,
// otherwise it returns the consumed gas.
// NOTE: This behaviour is only called when recovering from panic when BlockGasMeter consumes gas past the limit.
// NOTE: This behaviour is only called when recovering from panic when
// BlockGasMeter consumes gas past the limit.
func (g *basicGasMeter) GasConsumedToLimit() Gas {
if g.IsPastLimit() {
return g.limit
Expand Down

0 comments on commit bfa7536

Please sign in to comment.