Skip to content

Commit

Permalink
fix (#5257)
Browse files Browse the repository at this point in the history
  • Loading branch information
benisgold authored Dec 14, 2023
1 parent 34d8221 commit 76f0057
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/points/contexts/PointsProfileContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { WrappedAlert as Alert } from '@/helpers/alert';

import { metadataPOSTClient } from '@/graphql';
import { useAccountProfile, useWallets } from '@/hooks';
import { signPersonalMessage } from '@/model/wallet';
import { loadWallet, signPersonalMessage } from '@/model/wallet';
import { RainbowError, logger } from '@/logger';
import { queryClient } from '@/react-query';
import { useNavigation } from '@/navigation';
Expand Down Expand Up @@ -166,9 +166,10 @@ export const PointsProfileProvider = ({
const challenge = challengeResponse?.pointsOnboardChallenge;
if (challenge) {
const provider = await getProviderForNetwork(Network.mainnet);
const wallet = await loadWallet(accountAddress, true, provider);
const signatureResponse = await signPersonalMessage(
challenge,
undefined,
wallet,
provider
);
if (signatureResponse && isHardwareWallet) {
Expand Down

0 comments on commit 76f0057

Please sign in to comment.