@super-protocol/sdk-js 0.12.7-beta.2 → 0.12.7-beta.3

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/build/utils.js +2 -1
  2. package/package.json +1 -1
package/build/utils.js CHANGED
@@ -205,6 +205,7 @@ function unpackDeviceId(bytes32) {
205
205
  if (bytes32.length !== 66) {
206
206
  throw new Error("DeviceId bytes must be equal 66 symbols");
207
207
  }
208
- return bytes32.slice(0, 64);
208
+ // removes '0x'
209
+ return bytes32.slice(2, 66);
209
210
  }
210
211
  exports.unpackDeviceId = unpackDeviceId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.12.7-beta.2",
3
+ "version": "0.12.7-beta.3",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [