@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.
package/dist/index.mjs CHANGED
@@ -666,7 +666,6 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
666
666
  * 切换链
667
667
  */
668
668
  async switchChain(chainId) {
669
- this.ensureConnected();
670
669
  const provider = this.getBrowserProvider();
671
670
  try {
672
671
  await provider.request({
@@ -832,7 +831,7 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
832
831
  return void 0;
833
832
  }
834
833
  const w = window;
835
- return w.ethereum && w.ethereum.isMetaMask ? w.ethereum : void 0;
834
+ return w.ethereum ? w.ethereum : void 0;
836
835
  }
837
836
  /**
838
837
  * 获取下载链接