Skip to content

Commit

Permalink
Show tx signer
Browse files Browse the repository at this point in the history
Fix #116
  • Loading branch information
selankon committed Nov 20, 2024
1 parent 9cf5634 commit 5be71fc
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('transactions.signer', { defaultValue: 'Signer' }),
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

0 comments on commit 5be71fc

Please sign in to comment.