Skip to content

Commit

Permalink
fix: show amount
Browse files Browse the repository at this point in the history
  • Loading branch information
vien.nguyen2-tiki committed Mar 3, 2023
1 parent 28104db commit e8882c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions types/message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,5 @@ interface MsgWithdrawValidatorCommissionContent {
msgIndex: number
validatorAddress: string
uuid: string
amount: {
denom: string
amount: string
}[]
amount: TokenAmount[]
}
5 changes: 4 additions & 1 deletion views/transactions/cosmosMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,10 @@ const _mapMsgWithdrawValidatorCommission = (msg: TransactionMessage): CosmosTxMe
if (msg && content) {
return {
type: msg.type,
validatorAddress: content.validatorAddress
validatorAddress: content.validatorAddress,
recipientAddress: content.recipientAddress,
amount: formatEther(getAstraTokenAmount(content.amount)),
amountSymbol: getTokenName(content.amount)
}
}
}

0 comments on commit e8882c5

Please sign in to comment.