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

Emit eth tx hash in ante handler to support query failed transactions #1062

Merged
merged 14 commits into from
May 31, 2022
Prev Previous commit
Next Next commit
Update rpc/types/events.go
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
  • Loading branch information
yihuang and fedekunze authored May 31, 2022
commit 4bf833c5a9bb0a485958b67f1b24664cffe1b318
2 changes: 1 addition & 1 deletion rpc/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (p *ParsedTxs) GetTxByTxIndex(i int) *ParsedTx {
return p.GetTxByMsgIndex(msgIndex)
}

// AccumulativeGasUsed calculate the accumulated gas used within the batch
// AccumulativeGasUsed calculates the accumulated gas used within the batch of txs
func (p *ParsedTxs) AccumulativeGasUsed(msgIndex int) (result uint64) {
for i := 0; i <= msgIndex; i++ {
result += p.Txs[i].GasUsed
Expand Down