@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.
- package/build/utils.js +2 -1
- 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
|
-
|
|
208
|
+
// removes '0x'
|
|
209
|
+
return bytes32.slice(2, 66);
|
|
209
210
|
}
|
|
210
211
|
exports.unpackDeviceId = unpackDeviceId;
|