@openocean.finance/wallet 1.10.20 → 1.10.22
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/lib/Chains.js +1 -1
- package/lib/TryWalletConnect/index.js +1 -3
- package/package.json +1 -1
package/lib/Chains.js
CHANGED
|
@@ -120,7 +120,7 @@ var chainObj = {
|
|
|
120
120
|
"metis": {
|
|
121
121
|
compiler: 'EVM',
|
|
122
122
|
chainName: "Andromeda (Metis)", chainId: 1088, blockExplorerUrl: "https://andromeda-explorer.metis.io/tx/",
|
|
123
|
-
nativeCurrency: { name: "METIS", symbol: "METIS", decimals: 18, address: "
|
|
123
|
+
nativeCurrency: { name: "METIS", symbol: "METIS", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
|
|
124
124
|
rpcUrls: ["https://andromeda.metis.io/?owner=1088"]
|
|
125
125
|
},
|
|
126
126
|
"tron": {
|
|
@@ -224,13 +224,11 @@ function link(reqConnectWalletVo, chain) {
|
|
|
224
224
|
}
|
|
225
225
|
function linkAddOrSwitch(wallet, chain) {
|
|
226
226
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var _a, currentProvider, utilsEht,
|
|
227
|
+
var _a, currentProvider, utilsEht, chainId, rpcUrls, blockExplorerUrl, nativeCurrency, chainName, params, address, address, switchError_1, address, address, error_1, message;
|
|
228
228
|
return __generator(this, function (_b) {
|
|
229
229
|
switch (_b.label) {
|
|
230
230
|
case 0:
|
|
231
231
|
_a = wallet.sdk || {}, currentProvider = _a.currentProvider, utilsEht = _a.utils;
|
|
232
|
-
sddf = wallet.sdk;
|
|
233
|
-
debugger;
|
|
234
232
|
chainId = chain.chainId + '';
|
|
235
233
|
if (!chain) return [3 /*break*/, 23];
|
|
236
234
|
rpcUrls = chain.rpcUrls, blockExplorerUrl = chain.blockExplorerUrl, nativeCurrency = chain.nativeCurrency, chainName = chain.chainName;
|