@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/react/index.js
CHANGED
|
@@ -582,7 +582,6 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
|
|
|
582
582
|
* 切换链
|
|
583
583
|
*/
|
|
584
584
|
async switchChain(chainId) {
|
|
585
|
-
this.ensureConnected();
|
|
586
585
|
const provider = this.getBrowserProvider();
|
|
587
586
|
try {
|
|
588
587
|
await provider.request({
|
|
@@ -748,7 +747,7 @@ var MetaMaskAdapter = class extends BrowserWalletAdapter {
|
|
|
748
747
|
return void 0;
|
|
749
748
|
}
|
|
750
749
|
const w = window;
|
|
751
|
-
return w.ethereum
|
|
750
|
+
return w.ethereum ? w.ethereum : void 0;
|
|
752
751
|
}
|
|
753
752
|
/**
|
|
754
753
|
* 获取下载链接
|