Skip to content

Commit

Permalink
remove call data tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminaAiren committed Jan 23, 2024
1 parent 1cf6ca7 commit 3ed37a1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 27 deletions.
8 changes: 1 addition & 7 deletions ui/pages/UserOp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
import useTabIndexFromQuery from 'ui/shared/Tabs/useTabIndexFromQuery';
import TxLogs from 'ui/tx/TxLogs';
import TxTokenTransfer from 'ui/tx/TxTokenTransfer';
import UserOpCallData from 'ui/userOp/UserOpCallData';
import UserOpDetails from 'ui/userOp/UserOpDetails';
import UserOpRaw from 'ui/userOp/UserOpRaw';

Expand Down Expand Up @@ -64,14 +63,9 @@ const UserOp = () => {
title: 'Token transfers',
component: <TxTokenTransfer txHash={ userOpQuery.data?.transaction_hash } tokenTransferFilter={ filterTokenTransfersByLogIndex }/>,
},
{
id: 'call_data',
title: 'Call data',
component: <UserOpCallData rawCallData={ userOpQuery.data?.call_data } isLoading={ userOpQuery.isPlaceholderData }/>,
},
{ id: 'logs', title: 'Logs', component: <TxLogs txHash={ userOpQuery.data?.transaction_hash } logsFilter={ filterLogsByLogIndex }/> },
{ id: 'raw', title: 'Raw', component: <UserOpRaw rawData={ userOpQuery.data?.raw } isLoading={ userOpQuery.isPlaceholderData }/> },
].filter(Boolean)), [ userOpQuery, filterTokenTransfersByLogIndex, filterLogsByLogIndex ]);
]), [ userOpQuery, filterTokenTransfersByLogIndex, filterLogsByLogIndex ]);

const tabIndex = useTabIndexFromQuery(tabs);

Expand Down
Binary file modified ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 0 additions & 19 deletions ui/userOp/UserOpCallData.tsx

This file was deleted.

9 changes: 8 additions & 1 deletion ui/userOp/UserOpDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { UserOp } from 'types/api/userOps';
import config from 'configs/app';
import type { ResourceError } from 'lib/api/resources';
import { WEI, WEI_IN_GWEI } from 'lib/consts';
import throwOnResourceLoadError from 'lib/errors/throwOnResourceLoadError';
import { space } from 'lib/html-entities';
import CurrencyValue from 'ui/shared/CurrencyValue';
import DataFetchAlert from 'ui/shared/DataFetchAlert';
Expand All @@ -18,10 +19,10 @@ import DetailsTimestamp from 'ui/shared/DetailsTimestamp';
import BlockEntity from 'ui/shared/entities/block/BlockEntity';
import TxEntity from 'ui/shared/entities/tx/TxEntity';
import UserOpEntity from 'ui/shared/entities/userOp/UserOpEntity';
import RawInputData from 'ui/shared/RawInputData';
import UserOpsAddress from 'ui/shared/userOps/UserOpsAddress';
import UserOpSponsorType from 'ui/shared/userOps/UserOpSponsorType';
import UserOpStatus from 'ui/shared/userOps/UserOpStatus';
import throwOnResourceLoadError from 'lib/errors/throwOnResourceLoadError';
import Utilization from 'ui/shared/Utilization/Utilization';

interface Props {
Expand Down Expand Up @@ -293,6 +294,12 @@ const UserOpDetails = ({ query }: Props) => {
>
{ data.nonce }
</DetailsInfoItem>
<DetailsInfoItem
title="Call data"
hint="Data that’s passed to the sender for execution"
>
<RawInputData hex={ data.call_data }/>
</DetailsInfoItem>
</>
) }
</Grid>
Expand Down

0 comments on commit 3ed37a1

Please sign in to comment.