@fleet-sdk/blockchain-providers 0.9.1 → 0.11.0
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 +17 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
@@ -322,7 +322,7 @@ var sha256 = /* @__PURE__ */ createHasher(() => new SHA256());
|
|
322
322
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
323
323
|
var sha2562 = sha256;
|
324
324
|
|
325
|
-
// ../../node_modules/.pnpm/@scure+base@1.2.
|
325
|
+
// ../../node_modules/.pnpm/@scure+base@1.2.6/node_modules/@scure/base/lib/esm/index.js
|
326
326
|
function isBytes2(a) {
|
327
327
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
328
328
|
}
|
@@ -492,8 +492,8 @@ function checksum(len, fn) {
|
|
492
492
|
decode(data) {
|
493
493
|
if (!isBytes2(data))
|
494
494
|
throw new Error("checksum.decode: input should be Uint8Array");
|
495
|
-
const payload = data.slice(0, -
|
496
|
-
const oldChecksum = data.slice(-
|
495
|
+
const payload = data.slice(0, -len);
|
496
|
+
const oldChecksum = data.slice(-len);
|
497
497
|
const newChecksum = fn(payload).slice(0, len);
|
498
498
|
for (let i = 0; i < len; i++)
|
499
499
|
if (newChecksum[i] !== oldChecksum[i])
|