@certik/skynet 0.10.52 → 0.10.53

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## 0.10.53
5
+
6
+ - Fix: handle edge cases that token address has multiply ':'
7
+
3
8
  ## 0.10.52
4
9
 
5
10
  - Refactor: `getDateOnly` now accepts both date strings and date objects
package/address.js CHANGED
@@ -1,7 +1,7 @@
1
1
  function parseAddress(address) {
2
2
  const parts = address.split(":");
3
3
 
4
- if (parts.length === 2) {
4
+ if (parts.length > 1) {
5
5
  return [parts[0], parts[1].toLowerCase()];
6
6
  }
7
7
 
@@ -14,5 +14,5 @@ function composeAddress(protocol, addr) {
14
14
 
15
15
  module.exports = {
16
16
  parseAddress,
17
- composeAddress
17
+ composeAddress,
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@certik/skynet",
3
- "version": "0.10.52",
3
+ "version": "0.10.53",
4
4
  "description": "Skynet Shared JS library",
5
5
  "main": "index.js",
6
6
  "author": "CertiK Engineering",
@@ -35,4 +35,4 @@
35
35
  "sinon": "^14.0.0"
36
36
  },
37
37
  "license": "MIT"
38
- }
38
+ }