@openocean.finance/wallet 0.4.10 → 0.4.13
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.
|
@@ -122,7 +122,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
122
122
|
provider = new web3_provider_1.default(__assign({ infuraId: this.infuraId, chainId: chainId, rpc: {
|
|
123
123
|
69: "https://kovan.optimism.io",
|
|
124
124
|
420: "https://goerli.optimism.io",
|
|
125
|
-
10: "https://
|
|
125
|
+
10: "https://rpc.ankr.com/optimism",
|
|
126
126
|
25: "https://evm.cronos.org",
|
|
127
127
|
56: "https://bsc-dataseed1.binance.org",
|
|
128
128
|
66: "https://exchainrpc.okex.org",
|
|
@@ -136,7 +136,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
136
136
|
421611: "https://rinkeby.arbitrum.io/rpc",
|
|
137
137
|
43114: "https://api.avax.network/ext/bc/C/rpc",
|
|
138
138
|
1313161554: "https://mainnet.aurora.dev",
|
|
139
|
-
1666600000: "https://api.
|
|
139
|
+
1666600000: "https://api.s0.t.hmny.io",
|
|
140
140
|
} }, config));
|
|
141
141
|
return [4 /*yield*/, provider.enable()];
|
|
142
142
|
case 1:
|
|
@@ -145,7 +145,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
145
145
|
return [4 /*yield*/, this.sdk.eth.getChainId()];
|
|
146
146
|
case 2:
|
|
147
147
|
currentChainId = _a.sent();
|
|
148
|
-
if (chainId && currentChainId
|
|
148
|
+
if (chainId && currentChainId != chainId) {
|
|
149
149
|
throw new Error(types_1.EnumErrors.ChainIdNotMath);
|
|
150
150
|
}
|
|
151
151
|
return [4 /*yield*/, this.sdk.eth.getAccounts()];
|