@t2000/sdk 9.7.0 → 9.7.1

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/dist/browser.js CHANGED
@@ -1342,8 +1342,9 @@ function hexToBytes(hex) {
1342
1342
  return out;
1343
1343
  }
1344
1344
  function bytesToHex(bytes) {
1345
+ const arr = typeof bytes === "string" ? Array.from(atob(bytes), (c) => c.charCodeAt(0)) : bytes;
1345
1346
  let s = "0x";
1346
- for (const b of bytes) s += b.toString(16).padStart(2, "0");
1347
+ for (const b of arr) s += b.toString(16).padStart(2, "0");
1347
1348
  return s;
1348
1349
  }
1349
1350
  function preflightCreateJob(terms) {