Skip to content

Commit

Permalink
Merge pull request #40 from neutron-org/feat/slinky-tx-query-fix
Browse files Browse the repository at this point in the history
Feat: slinky tx query fix
  • Loading branch information
pr0n00gler authored Jul 11, 2024
2 parents 4222c96 + 517843f commit ddb7dae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/auth/tx/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ func QueryTx(clientCtx client.Context, hashHexStr string) (*sdk.TxResponse, erro

// formatTxResults parses the indexed txs into a slice of TxResponse objects.
func formatTxResults(txConfig client.TxConfig, resTxs []*coretypes.ResultTx, resBlocks map[int64]*coretypes.ResultBlock) ([]*sdk.TxResponse, error) {
var err error
out := make([]*sdk.TxResponse, len(resTxs))
var out []*sdk.TxResponse
for i := range resTxs {
out[i], err = mkTxResult(txConfig, resTxs[i], resBlocks[resTxs[i].Height])
if err != nil {
return nil, err
txResult, err := mkTxResult(txConfig, resTxs[i], resBlocks[resTxs[i].Height])
// Skip transactions that cannot be decoded for now
if err == nil {
out = append(out, txResult)
}
}

Expand Down

0 comments on commit ddb7dae

Please sign in to comment.