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
fix lint
  • Loading branch information
yihuang committed May 31, 2022
commit 3e025c06e3c79b1c08d747f495e7bcc7e1820d5e
2 changes: 1 addition & 1 deletion rpc/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (p *ParsedTxs) GetTxByTxIndex(txIndex int) *ParsedTx {
return nil
}
// assuming the `EthTxIndex` increase continuously,
// convert TxIndex to MsgIndex by substract the begin TxIndex.
// convert TxIndex to MsgIndex by subtract the begin TxIndex.
msgIndex := txIndex - int(p.Txs[0].EthTxIndex)
// GetTxByMsgIndex will check the bound
return p.GetTxByMsgIndex(msgIndex)
Expand Down