@enclave-hq/wallet-sdk 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -575,7 +575,6 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
575
575
  * 切换链
576
576
  */
577
577
  async switchChain(chainId) {
578
- this.ensureConnected();
579
578
  const provider = this.getBrowserProvider();
580
579
  try {
581
580
  await provider.request({
@@ -741,7 +740,7 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
741
740
  return void 0;
742
741
  }
743
742
  const w = window;
744
- return w.ethereum && w.ethereum.isMetaMask ? w.ethereum : void 0;
743
+ return w.ethereum ? w.ethereum : void 0;
745
744
  }
746
745
  /**
747
746
  * 获取下载链接