Skip to content

Commit

Permalink
fix: delete metamask connector
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jun 14, 2023
1 parent 46aa201 commit f64a2e0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/modules/signer/wallet-connect-metamask.ts
@@ -1,7 +1,6 @@
import Web3Provider from '@walletconnect/ethereum-provider';
import WalletConnect from '@walletconnect/client';
import QRCodeModal from '@walletconnect/qrcode-modal';
import { ICreateSessionOptions } from '@walletconnect/types';
import { ProviderEvent, ProviderType } from './signer.types';
import { SignerService } from './signer.service';
import { providers } from 'ethers';
Expand Down Expand Up @@ -38,14 +37,8 @@ export const createWalletConnectProvider = (
);
const walletConnectProvider = new Web3Provider({
rpc,
connector: new Connector({ bridge, qrcodeModal: QRCodeModal }),
connector: new WalletConnect({ bridge, qrcodeModal: QRCodeModal }),
infuraId,
});
return walletConnectProvider;
};

class Connector extends WalletConnect {
public async createSession(opts?: ICreateSessionOptions): Promise<void> {
await super.createSession(opts);
}
}

0 comments on commit f64a2e0

Please sign in to comment.