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

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
fedekunze committed May 31, 2022
1 parent ee39c32 commit c99ba46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (p *ParsedTxs) AccumulativeGasUsed(msgIndex int) (result uint64) {
for i := 0; i <= msgIndex; i++ {
result += p.Txs[i].GasUsed
}
return
return result
}

// fillTxAttribute parse attributes by name, less efficient than hardcode the index, but more stable against event
Expand Down Expand Up @@ -232,5 +232,5 @@ func parseRawLogs(attrs []abci.EventAttribute) (logs [][]byte) {
for _, attr := range attrs {
logs = append(logs, attr.Value)
}
return
return logs
}

0 comments on commit c99ba46

Please sign in to comment.