diff --git a/.changelog/1565.feature.md b/.changelog/1565.feature.md new file mode 100644 index 000000000..5f9e8eeb3 --- /dev/null +++ b/.changelog/1565.feature.md @@ -0,0 +1 @@ +Display EVM function name in verified contract calls diff --git a/src/app/components/ConsensusTransactionMethod/index.tsx b/src/app/components/ConsensusTransactionMethod/index.tsx index 4fd20658b..75e680bd6 100644 --- a/src/app/components/ConsensusTransactionMethod/index.tsx +++ b/src/app/components/ConsensusTransactionMethod/index.tsx @@ -103,7 +103,6 @@ const MethodIconContent: FC = ({ = ({ transaction, truncate }) => { const { t } = useTranslation() - const label = getRuntimeTransactionLabel(t, transaction.method) + let label = getRuntimeTransactionLabel(t, transaction.method) + if (transaction.evm_fn_name) { + if (truncate) { + label = `${transaction.evm_fn_name}` + } else { + label += `: ${transaction.evm_fn_name}` + } + } return <>{getRuntimeTransactionIcon(transaction.method, label, truncate)} }