@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.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +1 -2
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +1 -2
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -674,7 +674,6 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
|
|
|
674
674
|
* 切换链
|
|
675
675
|
*/
|
|
676
676
|
async switchChain(chainId) {
|
|
677
|
-
this.ensureConnected();
|
|
678
677
|
const provider = this.getBrowserProvider();
|
|
679
678
|
try {
|
|
680
679
|
await provider.request({
|
|
@@ -840,7 +839,7 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
|
|
|
840
839
|
return void 0;
|
|
841
840
|
}
|
|
842
841
|
const w = window;
|
|
843
|
-
return w.ethereum
|
|
842
|
+
return w.ethereum ? w.ethereum : void 0;
|
|
844
843
|
}
|
|
845
844
|
/**
|
|
846
845
|
* 获取下载链接
|