@requestnetwork/currency
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -6,2 +6,19 @@ # Change Log | ||
# 0.4.0 (2021-03-15) | ||
### Bug Fixes | ||
* ERC20 currency case ([#428](https://github.com/RequestNetwork/requestNetwork/issues/428)) ([9f4f131](https://github.com/RequestNetwork/requestNetwork/commit/9f4f13114d32ad30cedee2187052a41f16a8985f)) | ||
### Features | ||
* add mph and ausdc tokens to supported tokens ([#423](https://github.com/RequestNetwork/requestNetwork/issues/423)) ([6f8afec](https://github.com/RequestNetwork/requestNetwork/commit/6f8afec5bc5fbbd8b33280808bff47d07e5377f0)) | ||
* payment network any to erc20 smartcontracts ([#408](https://github.com/RequestNetwork/requestNetwork/issues/408)) ([a2f30a8](https://github.com/RequestNetwork/requestNetwork/commit/a2f30a84689eaea0994e72944c417718c7aad20e)) | ||
# 0.3.0 (2021-03-03) | ||
@@ -8,0 +25,0 @@ |
@@ -30,3 +30,3 @@ "use strict"; | ||
if (networks_1.supportedNetworksDetails.hasOwnProperty(network)) { | ||
erc20Token = Object.values(networks_1.supportedNetworksDetails[network]).find(({ address }) => address === currency.value); | ||
erc20Token = Object.values(networks_1.supportedNetworksDetails[network]).find(({ address }) => address.toLowerCase() === currency.value.toLowerCase()); | ||
} | ||
@@ -53,3 +53,3 @@ if (erc20Token) { | ||
if (networks_1.supportedNetworks.hasOwnProperty(network)) { | ||
const entry = [...networks_1.supportedNetworks[network].entries()].find(([, obj]) => currency.value === obj.value); | ||
const entry = [...networks_1.supportedNetworks[network].entries()].find(([, obj]) => currency.value.toLowerCase() === obj.value.toLowerCase()); | ||
return entry ? entry[0] : null; | ||
@@ -56,0 +56,0 @@ } |
{ | ||
"name": "@requestnetwork/currency", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"publishConfig": { | ||
@@ -45,4 +45,4 @@ "access": "public" | ||
"@metamask/contract-metadata": "1.23.0", | ||
"@requestnetwork/types": "0.30.0", | ||
"@requestnetwork/utils": "0.30.0", | ||
"@requestnetwork/types": "0.31.0", | ||
"@requestnetwork/utils": "0.31.0", | ||
"node-dijkstra": "2.5.0" | ||
@@ -66,3 +66,3 @@ }, | ||
}, | ||
"gitHead": "9d4f4fc7adbf06e1a92b5a4afce46a99b5921b0e" | ||
"gitHead": "07a78b313ce4dc8aefd7c44829b31e275a42a2eb" | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
96552
+ Added@requestnetwork/types@0.31.0(transitive)
+ Added@requestnetwork/utils@0.31.0(transitive)
- Removed@requestnetwork/types@0.30.0(transitive)
- Removed@requestnetwork/utils@0.30.0(transitive)
Updated@requestnetwork/types@0.31.0
Updated@requestnetwork/utils@0.31.0