Skip to content

Commit

Permalink
Merge 4655233 into 8527018
Browse files Browse the repository at this point in the history
  • Loading branch information
rulfo71 committed Nov 11, 2022
2 parents 8527018 + 4655233 commit 74dde67
Show file tree
Hide file tree
Showing 23 changed files with 884 additions and 571 deletions.
Expand Up @@ -25,6 +25,7 @@ jest.mock('utils', () => ({
},
}),
preventEmptyString: () => mockBigNumber,
shortenAddress: () => {},
}));

jest.mock('wagmi', () => ({
Expand Down
11 changes: 2 additions & 9 deletions src/components/ActionsBuilder/CallDetails/CallDetails.tsx
Expand Up @@ -4,8 +4,6 @@ import { BigNumber } from 'ethers';
import { Button } from 'components/primitives/Button';
import { Box } from 'components/primitives/Layout/Box';
import { Flex } from 'components/primitives/Layout/Flex';
import { UnstyledLink } from 'components/primitives/Links';
import { FiExternalLink } from 'react-icons/fi';
import { useTheme } from 'styled-components';
import { Divider } from 'components/Divider';
import { getSummaryView } from '../SupportedActions';
Expand All @@ -23,6 +21,7 @@ import { useTranslation } from 'react-i18next';
import { FunctionParamWithValue } from 'components/ActionsBuilder/SupportedActions/GenericCall/GenericCallInfoLine';
import { SupportedAction } from 'components/ActionsBuilder/types';
import { renderGenericCallParamValue } from 'components/ActionsBuilder/SupportedActions/GenericCall/GenericCallParamsMatcher';
import { BlockExplorerLink } from 'components/primitives/Links/BlockExplorerLink';

type Param = Partial<FunctionParamWithValue>;

Expand All @@ -39,13 +38,7 @@ function renderDefaultParamValue(param: Param) {
if (!param) return null;

if (param.type === 'address') {
return (
<UnstyledLink to="#">
<ParamDetail>
{param.value} <FiExternalLink size={16} />
</ParamDetail>
</UnstyledLink>
);
return <BlockExplorerLink address={param.value} />;
}

if (param.type.startsWith('uint') || param.type.startsWith('int')) {
Expand Down

0 comments on commit 74dde67

Please sign in to comment.