Skip to content

Commit

Permalink
fix: validator not displayed in stake messages (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanchristo authored Jul 27, 2023
1 parent eb8f448 commit 7525b56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/organisms/proposal-summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function renderMessage(msg: any, groupPolicyAddress: string) {
stakeType: 'delegate',
amount: msg.value['amount']['amount'],
denom: msg.value['amount']['denom'],
validator: msg.value['validator_address'],
} as unknown as ProposalStakeFormValues
}
/>
Expand All @@ -150,6 +151,8 @@ function renderMessage(msg: any, groupPolicyAddress: string) {
stakeType: 'redelegate',
amount: msg.value['amount']['amount'],
denom: msg.value['amount']['denom'],
toValidator: msg.value['validator_dst_address'],
fromValidator: msg.value['validator_src_address'],
} as unknown as ProposalStakeFormValues
}
/>
Expand All @@ -164,6 +167,7 @@ function renderMessage(msg: any, groupPolicyAddress: string) {
stakeType: 'undelegate',
amount: msg.value['amount']['amount'],
denom: msg.value['amount']['denom'],
validator: msg.value['validator_address'],
} as unknown as ProposalStakeFormValues
}
/>
Expand Down

0 comments on commit 7525b56

Please sign in to comment.