Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pub disclosure key #483

Merged
merged 1 commit into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/config/whitelist.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const archWhitelist = [
'0x7cff7c3c1f150a59a202cf5ec1bb8b57908e385e',
'0xc294fea53deae906fd7e8e67952ea241fcd06d79',
'0x7f6964ed88f2ccbde3a96a06debb90b76ed1b0dc'
];
'0x7f6964ed88f2ccbde3a96a06debb90b76ed1b0dc',
];
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface ArchaeologistListItemProps {
isDialing: boolean;
setIsDialing: Dispatch<SetStateAction<boolean>>;
onClick: () => void;
isArchaeologistDashboard?: boolean
isArchaeologistDashboard?: boolean;
}

interface TableContentProps {
Expand Down Expand Up @@ -67,7 +67,9 @@ export function ArchaeologistListItem({
}, [archaeologist.profile.peerId, dispatch, ensName]);

const formattedArchAddress = () => {
return ensName ?? isArchaeologistDashboard ? archaeologist.profile.archAddress : formatAddress(archaeologist.profile.archAddress);
return ensName ?? isArchaeologistDashboard
? archaeologist.profile.archAddress
: formatAddress(archaeologist.profile.archAddress);
};

function TableContent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useLoadArchaeologists() {

try {
const archs = await sarco.archaeologist.getFullArchProfiles({ addresses });
return archs.filter((arch) => archWhitelist.includes(arch.profile.archAddress.toLowerCase()));
return archs.filter(arch => archWhitelist.includes(arch.profile.archAddress.toLowerCase()));
} catch (e) {
console.log('error loading archs', e);
Sentry.captureException(e, { fingerprint: ['LOAD_ARCHAEOLOGISTS_FAILURE'] });
Expand All @@ -52,7 +52,7 @@ export function useLoadArchaeologists() {

try {
const archs = await sarco.archaeologist.getFullArchProfiles({});
return archs.filter((arch) => archWhitelist.includes(arch.profile.archAddress.toLowerCase()));
return archs.filter(arch => archWhitelist.includes(arch.profile.archAddress.toLowerCase()));
} catch (e) {
console.log('error loading archs', e);
Sentry.captureException(e, { fingerprint: ['LOAD_ARCHAEOLOGISTS_FAILURE'] });
Expand Down
16 changes: 8 additions & 8 deletions src/features/embalm/stepContent/steps/SetRecipientPublicKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ interface IRecipientSetByOption extends OptionBase {
value: RecipientSetByOption;
}

const PUBLIC_DISCLOSURE_PUBLIC_KEY = '0x02d1ed64129053907e87bf904e693a846432f8b9743c66cb703216f633a22b8d3d';
const PUBLIC_DISCLOSURE_PUBLIC_KEY =
'0x04d1ed64129053907e87bf904e693a846432f8b9743c66cb703216f633a22b8d3d9860302182399eb2b55b9cccd6462b1ef90b4be4f6a9b07519623d274caa0000';

export function SetRecipientPublicKey() {
const dispatch = useDispatch();
Expand Down Expand Up @@ -116,16 +117,15 @@ export function SetRecipientPublicKey() {
{recipientState.setByOption === RecipientSetByOption.PUBLIC_DISCLOSURE && (
<VStack align="left">
<Text>
Disclose to the public via {' '}
Disclose to the public via{' '}
<Link
href='https://twitter.com/Thoth_Discloser'
target='_blank'
textDecor='underline'
href="https://twitter.com/Thoth_Discloser"
target="_blank"
textDecor="underline"
>
@Thoth_Discloser
</Link>
{' '}on Twitter. This will generate a
public key and disclose it to the public.
</Link>{' '}
on Twitter. This will generate a public key and disclose it to the public.
</Text>
</VStack>
)}
Expand Down