@fleet-sdk/blockchain-providers 0.10.0 → 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 +6 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
@@ -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])
|