Skip to content

Commit

Permalink
fix: metamask wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Mar 19, 2024
1 parent 94e3baf commit f7dcd5f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import UserContext from '@context/UserContext';
import { Network } from '@data/networks';
import { estimateRegistrationPrice, getAccountBalance } from '@utils/ens';
import { sendAmount, switchToNetwork } from '@utils/metamask';
import { BigNumber, utils } from 'ethers';
import { BigNumber, Wallet, utils } from 'ethers';
import { useContext, useEffect, useRef, useState } from 'react';
import InfoLight from '@media/UI/info-light.svg';
import InfoDark from '@media/UI/info-dark.svg';
Expand Down Expand Up @@ -96,7 +96,8 @@ export default function MetamaskCreateAccount({
}

await fdpClientRef.current.account.register(request);
setWallet(fdpClientRef.current.account.wallet);
const wallet = new Wallet(fdpClientRef.current.account.wallet.privateKey);
setWallet(wallet);
setFdpStorageType('native');
setIsLoggedIn(true);
setLoginType('username');
Expand Down

0 comments on commit f7dcd5f

Please sign in to comment.