Skip to content

Commit

Permalink
Merge pull request #3820 from WalletConnect/fix/required-modal-package
Browse files Browse the repository at this point in the history
fix: required modal package usage
  • Loading branch information
ganchoradkov authored Oct 24, 2023
2 parents 174b688 + 861edc7 commit 5bcffc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/ethereum-provider/src/EthereumProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class EthereumProvider implements IEthereumProvider {
if (this.rpc.showQrModal) {
let WalletConnectModalClass;
try {
const WalletConnectModal = require("@walletconnect/modal");
const WalletConnectModal = require("@walletconnect/modal").WalletConnectModal;
WalletConnectModalClass = WalletConnectModal;
} catch {
throw new Error("To use QR modal, please install @walletconnect/modal package");
Expand Down

0 comments on commit 5bcffc2

Please sign in to comment.