@openocean.finance/wallet 1.9.4 → 1.9.6

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.
Files changed (2) hide show
  1. package/lib/Chains.js +3 -1
  2. package/package.json +1 -1
package/lib/Chains.js CHANGED
@@ -204,7 +204,7 @@ var chainObj = {
204
204
  chainName: "Moonriver Mainnet",
205
205
  chainId: 1285,
206
206
  blockExplorerUrl: "https://moonriver.moonscan.io",
207
- nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" },
207
+ nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18, address: "0x0000000000000000000000000000000000000000" },
208
208
  popularToken: [],
209
209
  rpcUrls: [
210
210
  "https://rpc.moonriver.moonbeam.network"
@@ -568,6 +568,8 @@ var Chains = /** @class */ (function () {
568
568
  return this.chainObj[name] || null;
569
569
  };
570
570
  Chains.prototype.isNativeToken = function (chainName, address) {
571
+ if (!chainName || !address)
572
+ return false;
571
573
  if (chainObj[chainName] && chainObj[chainName].nativeCurrency && chainObj[chainName].nativeCurrency.address) {
572
574
  return chainObj[chainName].nativeCurrency.address.toUpperCase() === address.toUpperCase();
573
575
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/wallet",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "A multi-chain wallets manager",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {