Skip to content

Commit

Permalink
Include multisend transactions in banking group (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariopino authored and faboweb committed Nov 21, 2019
1 parent cd4dae4 commit 7cf4e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reducers/cosmosV0-reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ function overviewReducer(balances, delegations, rewards, stakingDenom) {
function getGroupByType(transactionType) {
const transactionGroup = {
[cosmosMessageType.SEND]: 'banking',
[cosmosMessageType.MULTI_SEND]: 'banking',
[cosmosMessageType.CREATE_VALIDATOR]: 'staking',
[cosmosMessageType.EDIT_VALIDATOR]: 'staking',
[cosmosMessageType.DELEGATE]: 'staking',
Expand All @@ -331,8 +332,7 @@ function getGroupByType(transactionType) {
[cosmosMessageType.VOTE]: 'governance',
[cosmosMessageType.SET_WITHDRAW_ADDRESS]: 'distribution',
[cosmosMessageType.WITHDRAW_DELEGATION_REWARD]: 'distribution',
[cosmosMessageType.WITHDRAW_VALIDATOR_COMMISSION]: 'distribution',
[cosmosMessageType.MULTI_SEND]: 'multisend'
[cosmosMessageType.WITHDRAW_VALIDATOR_COMMISSION]: 'distribution'
}

return transactionGroup[transactionType] || 'unknown'
Expand Down

0 comments on commit 7cf4e0b

Please sign in to comment.