@openocean.finance/wallet 0.4.12 → 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://mainnet.optimism.io",
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",
@@ -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 !== chainId) {
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()];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {