Skip to content

Commit

Permalink
add more logging and remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Sep 17, 2024
1 parent 60ccbca commit ef0cfd1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 225 deletions.
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@headlessui/react": "^1.7.19",
"@heroicons/react": "^2.1.3",
"@lottiefiles/dotlottie-react": "^0.8.10",
"@noble/ed25519": "^2.1.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-tooltip": "^1.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ export function FramesProvider({ children }: FramesProviderProps) {
async ({ signatureData }) => {
if (!address) {
openConnectModal?.();
console.info('Opened connect modal because the account address is not set');

return null;
}

Expand All @@ -189,12 +187,12 @@ export function FramesProvider({ children }: FramesProviderProps) {
setFrameInteractionError('Error signing data');
}

console.error(error);
logError(error, 'failed to sign frame data');

return null;
}
},
[address, openConnectModal, currentChainId, config],
[address, openConnectModal, currentChainId, config, logError],
);

const { writeContractAsync, isPending: pendingFrameChange } = useWriteContract();
Expand Down Expand Up @@ -222,20 +220,21 @@ export function FramesProvider({ children }: FramesProviderProps) {
args: [nameHash, UsernameTextRecordKeys.Frames, frameUrl.trim()],
functionName: 'setText',
});
refetchExistingTextRecords().catch(console.warn);
refetchExistingTextRecords().catch((e) => logError(e, 'failed to refetch text records'));
return result;
}
return doTransaction();
},
[
address,
currentChainId,
profileUsername,
basenameChain,
writeContractAsync,
config,
currentChainId,
openConnectModal,
basenameChain.id,
refetchExistingTextRecords,
openConnectModal,
config,
logError,
],
);

Expand Down
102 changes: 0 additions & 102 deletions apps/web/src/hooks/useStorage.ts

This file was deleted.

30 changes: 0 additions & 30 deletions apps/web/src/utils/farcaster/crypto.ts

This file was deleted.

81 changes: 0 additions & 81 deletions apps/web/src/utils/farcaster/identityPoller.ts

This file was deleted.

3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ __metadata:
"@headlessui/react": ^1.7.19
"@heroicons/react": ^2.1.3
"@lottiefiles/dotlottie-react": ^0.8.10
"@noble/ed25519": ^2.1.0
"@radix-ui/react-accordion": ^1.2.0
"@radix-ui/react-popover": ^1.1.1
"@radix-ui/react-tooltip": ^1.1.2
Expand Down Expand Up @@ -5492,7 +5491,7 @@ __metadata:
languageName: node
linkType: hard

"@noble/ed25519@npm:^2.0.0, @noble/ed25519@npm:^2.1.0":
"@noble/ed25519@npm:^2.0.0":
version: 2.1.0
resolution: "@noble/ed25519@npm:2.1.0"
checksum: f9638d5daaaadaecf33cb09675668bde144cecb9a4467f78cda2a7fbd96a1b975a1f8d00e99599f840de52adc64e723333c7c8e52cdf85e3ef160d01b95c408c
Expand Down

0 comments on commit ef0cfd1

Please sign in to comment.