@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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # @fleet-sdk/blockchain-providers
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @fleet-sdk/core@0.11.0
8
+
9
+ ## 0.10.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [b17af12]
14
+ - Updated dependencies [5125398]
15
+ - Updated dependencies [fd4ffd7]
16
+ - Updated dependencies [799fff2]
17
+ - @fleet-sdk/common@0.10.0
18
+ - @fleet-sdk/core@0.10.0
19
+
3
20
  ## 0.9.1
4
21
 
5
22
  ### Patch Changes
package/dist/index.js CHANGED
@@ -324,7 +324,7 @@ var sha256 = /* @__PURE__ */ createHasher(() => new SHA256());
324
324
  // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
325
325
  var sha2562 = sha256;
326
326
 
327
- // ../../node_modules/.pnpm/@scure+base@1.2.5/node_modules/@scure/base/lib/esm/index.js
327
+ // ../../node_modules/.pnpm/@scure+base@1.2.6/node_modules/@scure/base/lib/esm/index.js
328
328
  function isBytes2(a) {
329
329
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
330
330
  }
@@ -494,8 +494,8 @@ function checksum(len, fn) {
494
494
  decode(data) {
495
495
  if (!isBytes2(data))
496
496
  throw new Error("checksum.decode: input should be Uint8Array");
497
- const payload = data.slice(0, -4);
498
- const oldChecksum = data.slice(-4);
497
+ const payload = data.slice(0, -len);
498
+ const oldChecksum = data.slice(-len);
499
499
  const newChecksum = fn(payload).slice(0, len);
500
500
  for (let i = 0; i < len; i++)
501
501
  if (newChecksum[i] !== oldChecksum[i])