Skip to content

Commit

Permalink
Fix: AppContextProvider types after @web3-onboard updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Dec 4, 2024
1 parent ce4ff94 commit 9293d7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/context/AppContext/AppContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => {
const updateWallet = useCallback(() => {
try {
const updatedWallet = getContext(ContextModule.Wallet);
updatedWallet.address = utils.getAddress(updatedWallet.address);
updatedWallet.address = utils.getAddress(
updatedWallet.address,
) as `0x${string}`;
setWallet(updatedWallet);
// Update the user as soon as the wallet address changes
if (updatedWallet.address !== wallet?.address) {
Expand Down

0 comments on commit 9293d7e

Please sign in to comment.