Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminaAiren committed Feb 19, 2024
1 parent beebb07 commit dd47c92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pages/batches/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Batches = dynamic(() => {
case 'optimistic':
return import('ui/pages/OptimisticL2TxnBatches');
}
throw new Error('Deposits feature is not enabled.');
throw new Error('Txn batches feature is not enabled.');
}, { ssr: false });

const Page: NextPage = () => {
Expand Down
14 changes: 7 additions & 7 deletions ui/userOp/UserOpDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import DataFetchAlert from 'ui/shared/DataFetchAlert';
import DetailsInfoItem from 'ui/shared/DetailsInfoItem';
import DetailsInfoItemDivider from 'ui/shared/DetailsInfoItemDivider';
import DetailsTimestamp from 'ui/shared/DetailsTimestamp';
import UserOpsAddress from 'ui/shared/entities/address/AddressStringOrParam';
import AddressStringOrParam from 'ui/shared/entities/address/AddressStringOrParam';
import BlockEntity from 'ui/shared/entities/block/BlockEntity';
import TxEntity from 'ui/shared/entities/tx/TxEntity';
import UserOpEntity from 'ui/shared/entities/userOp/UserOpEntity';
Expand Down Expand Up @@ -78,7 +78,7 @@ const UserOpDetails = ({ query }: Props) => {
hint="The address of the smart contract account"
isLoading={ isPlaceholderData }
>
<UserOpsAddress address={ data.sender } isLoading={ isPlaceholderData }/>
<AddressStringOrParam address={ data.sender } isLoading={ isPlaceholderData }/>
</DetailsInfoItem>
<DetailsInfoItem
title="Status"
Expand Down Expand Up @@ -165,7 +165,7 @@ const UserOpDetails = ({ query }: Props) => {
hint="Contract that executes bundles of User operations"
isLoading={ isPlaceholderData }
>
<UserOpsAddress address={ data.entry_point } isLoading={ isPlaceholderData }/>
<AddressStringOrParam address={ data.entry_point } isLoading={ isPlaceholderData }/>
</DetailsInfoItem>

{ /* CUT */ }
Expand Down Expand Up @@ -236,7 +236,7 @@ const UserOpDetails = ({ query }: Props) => {
title="Aggregator"
hint="Helper contract to validate an aggregated signature"
>
<UserOpsAddress address={ data.aggregator }/>
<AddressStringOrParam address={ data.aggregator }/>
</DetailsInfoItem>
) }
{ data.aggregator_signature && (
Expand All @@ -251,22 +251,22 @@ const UserOpDetails = ({ query }: Props) => {
title="Bundler"
hint="A node (block builder) that handles User operations"
>
<UserOpsAddress address={ data.bundler }/>
<AddressStringOrParam address={ data.bundler }/>
</DetailsInfoItem>
{ data.factory && (
<DetailsInfoItem
title="Factory"
hint="Smart contract that deploys new smart contract wallets for users"
>
<UserOpsAddress address={ data.factory }/>
<AddressStringOrParam address={ data.factory }/>
</DetailsInfoItem>
) }
{ data.paymaster && (
<DetailsInfoItem
title="Paymaster"
hint="Contract to sponsor the gas fees for User operations"
>
<UserOpsAddress address={ data.paymaster }/>
<AddressStringOrParam address={ data.paymaster }/>
</DetailsInfoItem>
) }
<DetailsInfoItem
Expand Down

0 comments on commit dd47c92

Please sign in to comment.