Skip to content

Commit

Permalink
fix: contract provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Apr 17, 2024
1 parent 8ba2b06 commit 99d2d90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/context/WalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const WalletContextProvider = ({
signerOrProvider: string | providers.Provider | Signer,
address: string
) => {
const provider = dappRegistry.provider;

console.log(provider);

try {
setLoading(true);
dappRegistry.connect(signerOrProvider);
Expand All @@ -59,6 +63,7 @@ export const WalletContextProvider = ({
});
} catch (error) {
removeWallet();
dappRegistry.connect(provider);
throw error;
} finally {
setLoading(false);
Expand Down

0 comments on commit 99d2d90

Please sign in to comment.