@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.mjs
CHANGED
|
@@ -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
|
|
743
|
+
return w.ethereum ? w.ethereum : void 0;
|
|
745
744
|
}
|
|
746
745
|
/**
|
|
747
746
|
* 获取下载链接
|