MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / convertHex

Function convertHex

test/helpers/utils.js:19–27  ·  view source on GitHub ↗
(hexx)

Source from the content-addressed store, hash-verified

17}
18
19function convertHex(hexx) {
20 var hex = hexx.toString(); //force conversion
21 var str = "";
22 for (var i = 0; i < hex.length; i += 2) {
23 let char = String.fromCharCode(parseInt(hex.substr(i, 2), 16));
24 if (char != "\u0000") str += char;
25 }
26 return str;
27}
28
29export { ensureException, timeDifference, convertHex };
30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected