Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

refactor: update creatorCoinAddress in CreatorCoin component for correct token retrieval

yoginth.com 9639fee0 4a1e3291

verified
+4 -3
+1 -1
apps/web/src/components/Account/CreatorCoin/index.tsx
··· 18 18 // "creatorCoinAddress", 19 19 // account?.metadata?.attributes 20 20 // ); 21 - const creatorCoinAddress = "0x9b13358e3a023507e7046c18f508a958cda75f54"; 21 + const creatorCoinAddress = "0x58b14cc0ebb0ce5387557adbe6477e001d3dcde0"; 22 22 23 23 const { data: coin } = useQuery<GetCoinResponse["zora20Token"] | null>({ 24 24 enabled: !!creatorCoinAddress,
+3 -2
apps/web/src/hooks/useHandleWrongNetwork.tsx
··· 2 2 import logger from "@hey/helpers/logger"; 3 3 import { useConnections, useSwitchChain } from "wagmi"; 4 4 5 - const useHandleWrongNetwork = () => { 5 + const useHandleWrongNetwork = (props?: { chainId?: number }) => { 6 + const { chainId = CHAIN.id } = props ?? {}; 6 7 const activeConnection = useConnections(); 7 8 const { switchChainAsync } = useSwitchChain(); 8 9 9 10 const isConnected = () => activeConnection[0] !== undefined; 10 - const isWrongNetwork = () => activeConnection[0]?.chainId !== CHAIN.id; 11 + const isWrongNetwork = () => activeConnection[0]?.chainId !== chainId; 11 12 12 13 const handleWrongNetwork = async () => { 13 14 if (!isConnected()) {