Skip to content

Commit 60c6278

Browse files
committed
fix: update known to verified
1 parent 519887c commit 60c6278

File tree

6 files changed

+10
-16
lines changed

6 files changed

+10
-16
lines changed

app/components/UI/SecurityTrust/Views/SecurityTrustScreen.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ describe('SecurityTrustScreen', () => {
121121

122122
it('renders without crashing', () => {
123123
const { getByText } = render(<SecurityTrustScreen />);
124-
expect(getByText(strings('security_trust.known'))).toBeTruthy();
124+
expect(getByText(strings('security_trust.verified'))).toBeTruthy();
125125
});
126126

127127
it('displays token security result label', () => {
128128
const { getByText } = render(<SecurityTrustScreen />);
129-
expect(getByText(strings('security_trust.known'))).toBeTruthy();
129+
expect(getByText(strings('security_trust.verified'))).toBeTruthy();
130130
});
131131

132132
it('displays token distribution section', () => {

app/components/UI/SecurityTrust/Views/SecurityTrustScreen.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,7 @@ const SecurityTrustScreen: React.FC = () => {
274274
twClassName="flex-1"
275275
>
276276
<Box twClassName="w-3 h-3 rounded-full bg-[#6B7FFF]" />
277-
<Text
278-
variant={TextVariant.BodySm}
279-
color={TextColor.TextAlternative}
280-
>
277+
<Text variant={TextVariant.BodySm} color={TextColor.TextDefault}>
281278
{strings('security_trust.top_10_holders')}
282279
</Text>
283280
</Box>
@@ -313,10 +310,7 @@ const SecurityTrustScreen: React.FC = () => {
313310
: 'bg-[rgba(133,139,154,0.77)]'
314311
}`}
315312
/>
316-
<Text
317-
variant={TextVariant.BodySm}
318-
color={TextColor.TextAlternative}
319-
>
313+
<Text variant={TextVariant.BodySm} color={TextColor.TextDefault}>
320314
{strings('security_trust.other')}
321315
</Text>
322316
</Box>

app/components/UI/SecurityTrust/components/SecurityTrustEntryCard/SecurityTrustEntryCard.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('SecurityTrustEntryCard', () => {
9595
);
9696

9797
expect(getByText(strings('security_trust.title'))).toBeTruthy();
98-
expect(getByText(strings('security_trust.known'))).toBeTruthy();
98+
expect(getByText(strings('security_trust.verified'))).toBeTruthy();
9999
});
100100

101101
it('displays arrow icon when details are available', () => {
@@ -108,7 +108,7 @@ describe('SecurityTrustEntryCard', () => {
108108
);
109109

110110
expect(getByText(strings('security_trust.title'))).toBeTruthy();
111-
expect(getByText(strings('security_trust.known'))).toBeTruthy();
111+
expect(getByText(strings('security_trust.verified'))).toBeTruthy();
112112
});
113113

114114
it('navigates to security trust screen when pressed with details', () => {

app/components/UI/SecurityTrust/utils/securityUtils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('securityUtils', () => {
2121
it('returns config for Verified result type', () => {
2222
const config = getResultTypeConfig('Verified');
2323

24-
expect(config.label).toBe(strings('security_trust.known'));
24+
expect(config.label).toBe(strings('security_trust.verified'));
2525
expect(config.textColor).toBe(TextColor.SuccessDefault);
2626
expect(config.subtitle).toBe(strings('security_trust.subtitle_known'));
2727
expect(config.icon).toBe(IconName.SecurityTick);

app/components/UI/SecurityTrust/utils/securityUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const getResultTypeConfig = (
2525
switch (resultType) {
2626
case 'Verified':
2727
return {
28-
label: strings('security_trust.known'),
28+
label: strings('security_trust.verified'),
2929
textColor: TextColor.SuccessDefault,
3030
subtitle: strings('security_trust.subtitle_known'),
3131
icon: IconName.SecurityTick,
@@ -85,7 +85,7 @@ const POSITIVE_FEATURE_LABELS: Record<string, FeatureDefinition> = {
8585
label: 'Listed on exchange',
8686
type: 'Benign',
8787
},
88-
VERIFIED_CONTRACT: { label: 'Verified contract', type: 'Info' },
88+
VERIFIED_CONTRACT: { label: 'Published contract', type: 'Info' },
8989
HIGH_TRADE_VOLUME: { label: 'High trading volume', type: 'Info' },
9090
};
9191

locales/languages/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3608,7 +3608,7 @@
36083608
"telegram": "Telegram",
36093609
"etherscan": "Etherscan",
36103610
"na": "N/A",
3611-
"known": "Known",
3611+
"verified": "Verified",
36123612
"no_issues": "No issues",
36133613
"suspicious": "Suspicious",
36143614
"malicious_label": "Malicious",

0 commit comments

Comments
 (0)