Skip to content

Commit

Permalink
Show tx signer (#133)
Browse files Browse the repository at this point in the history
* Show tx signer

Fix #116

* Add translations

* Use correct translation
  • Loading branch information
selankon authored Nov 22, 2024
1 parent 9cf5634 commit 8c80e66
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Transactions/TxDetails/TxDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const TxDetailsGrid = ({ txInfo, tx }: Tx) => {
}

const txHash = ensure0x(hash)
const signer = ensure0x(txInfo.signer)
let txType: TransactionType | undefined = undefined
if (tx) {
txType = Object.keys(tx)[0] as TransactionType
Expand Down Expand Up @@ -63,6 +64,22 @@ export const TxDetailsGrid = ({ txInfo, tx }: Tx) => {
</ReducedTextAndCopy>
),
},
{
label: t('validators.account', { defaultValue: 'Account' }),
children: (
<ReducedTextAndCopy
breakPoint={{ base: true, lg: false }}
p={0}
color={'textAccent1'}
toCopy={signer}
fontWeight={'normal'}
h={0}
fontSize={'md'}
>
{signer}
</ReducedTextAndCopy>
),
},
{
label: t('transactions.block', { defaultValue: 'Block' }),
children: (
Expand Down

2 comments on commit 8c80e66

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.