Skip to content

Commit

Permalink
adds key to identify and sort txs (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb authored Mar 23, 2020
1 parent 3bfb9d6 commit 7e6260c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ function transactionReducerV2(transaction, reducers, stakingDenom) {
const returnedMessages = allMessages.map(({ value, type }, index) => ({
type: getMessageType(type),
hash: transaction.txhash,
key: `${transaction.txhash}_${index}`,
height: transaction.height,
details: transactionDetailsReducer(
getMessageType(type),
Expand Down
1 change: 1 addition & 0 deletions lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ const typeDefs = gql`
type TransactionV2 {
type: String!
hash: String!
key: String!
height: Int!
details: TransactionDetails!
timestamp: String!
Expand Down

0 comments on commit 7e6260c

Please sign in to comment.