@openocean.finance/wallet 1.9.4 → 1.9.5
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 +2 -0
- package/package.json +1 -1
package/lib/Chains.js
CHANGED
|
@@ -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
|
}
|