diff --git a/mocks/userOps/userOp.ts b/mocks/userOps/userOp.ts index d1508aad6c..d13401b598 100644 --- a/mocks/userOps/userOp.ts +++ b/mocks/userOps/userOp.ts @@ -66,6 +66,14 @@ export const userOpData: UserOp = { }, call_data: '0xb61d27f600000000000000000000000059f6aa952df7f048fd076e33e0ea8bb552d5ffd8000000000000000000000000000000000000000000000000003f3d017500800000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000', execute_call_data: '0x3cf80e6c', + execute_target: { + ens_domain_name: null, + hash: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', + implementations: null, + is_contract: true, + is_verified: true, + name: 'FiatTokenProxy', + }, decoded_call_data: { method_call: 'execute(address dest, uint256 value, bytes func)', method_id: 'b61d27f6', diff --git a/types/api/userOps.ts b/types/api/userOps.ts index a5e7b67923..c0e528d41d 100644 --- a/types/api/userOps.ts +++ b/types/api/userOps.ts @@ -49,6 +49,7 @@ export type UserOp = { call_data: string; decoded_call_data: DecodedInput | null; execute_call_data: string | null; + execute_target?: AddressParamBasic | null; decoded_execute_call_data: DecodedInput | null; user_logs_start_index: number; user_logs_count: number; diff --git a/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png b/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png index 2aa4b1d620..f3ab27d839 100644 Binary files a/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png and b/ui/pages/__screenshots__/UserOp.pw.tsx_default_base-view-1.png differ diff --git a/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png b/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png index ad580e51bd..9108182f4b 100644 Binary files a/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png and b/ui/pages/__screenshots__/UserOp.pw.tsx_default_mobile-base-view-1.png differ diff --git a/ui/userOp/UserOpDetails.tsx b/ui/userOp/UserOpDetails.tsx index 01b7b3a4e0..6fbc603568 100644 --- a/ui/userOp/UserOpDetails.tsx +++ b/ui/userOp/UserOpDetails.tsx @@ -19,6 +19,7 @@ import DataFetchAlert from 'ui/shared/DataFetchAlert'; import * as DetailsInfoItem from 'ui/shared/DetailsInfoItem'; import DetailsInfoItemDivider from 'ui/shared/DetailsInfoItemDivider'; import DetailsTimestamp from 'ui/shared/DetailsTimestamp'; +import AddressEntity from 'ui/shared/entities/address/AddressEntity'; import AddressStringOrParam from 'ui/shared/entities/address/AddressStringOrParam'; import BlockEntity from 'ui/shared/entities/block/BlockEntity'; import TxEntity from 'ui/shared/entities/tx/TxEntity'; @@ -91,6 +92,20 @@ const UserOpDetails = ({ query }: Props) => { + { data.execute_target && ( + <> + + Target + + + + + + ) } +