Display method name on transaction details page

This commit is contained in:
Willian Mitsuda 2021-07-13 02:56:43 -03:00
parent 693e0c6611
commit 1bf47266a4
1 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import AddressLink from "./components/AddressLink";
import Copy from "./components/Copy"; import Copy from "./components/Copy";
import Timestamp from "./components/Timestamp"; import Timestamp from "./components/Timestamp";
import InternalTransfer from "./components/InternalTransfer"; import InternalTransfer from "./components/InternalTransfer";
import MethodName from "./components/MethodName";
import GasValue from "./components/GasValue"; import GasValue from "./components/GasValue";
import FormattedBalance from "./components/FormattedBalance"; import FormattedBalance from "./components/FormattedBalance";
import TokenTransferItem from "./TokenTransferItem"; import TokenTransferItem from "./TokenTransferItem";
@ -232,7 +233,9 @@ const Transaction: React.FC = () => {
</div> </div>
)} )}
</InfoRow> </InfoRow>
<InfoRow title="Transaction Action"></InfoRow> <InfoRow title="Transaction Action">
<MethodName data={txData.data} />
</InfoRow>
{txData.tokenTransfers.length > 0 && ( {txData.tokenTransfers.length > 0 && (
<InfoRow <InfoRow
title={`Tokens Transferred (${txData.tokenTransfers.length})`} title={`Tokens Transferred (${txData.tokenTransfers.length})`}