viem 0.1.24 → 0.1.26

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.
@@ -20,7 +20,7 @@ import "abitype";
20
20
  var package_default = {
21
21
  name: "viem",
22
22
  description: "TypeScript Interface for Ethereum",
23
- version: "0.1.24",
23
+ version: "0.1.26",
24
24
  scripts: {
25
25
  anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
26
26
  bench: "vitest bench --no-threads",
@@ -2300,7 +2300,7 @@ function decodeArray(data, {
2300
2300
  consumed2 += decodedChild.consumed;
2301
2301
  value2.push(decodedChild.value);
2302
2302
  }
2303
- return { value: value2, consumed: consumed2 };
2303
+ return { value: value2, consumed: 32 };
2304
2304
  }
2305
2305
  let consumed = 0;
2306
2306
  let value = [];
@@ -2506,7 +2506,7 @@ function decodeFunctionData({
2506
2506
  }) {
2507
2507
  const signature = slice(data, 0, 4);
2508
2508
  const description = abi.find(
2509
- (x) => signature === getFunctionSelector(formatAbiItem(x))
2509
+ (x) => x.type === "function" && signature === getFunctionSelector(formatAbiItem(x))
2510
2510
  );
2511
2511
  if (!description)
2512
2512
  throw new AbiFunctionSignatureNotFoundError(signature, {
@@ -5594,4 +5594,4 @@ export {
5594
5594
  formatGwei,
5595
5595
  parseEther
5596
5596
  };
5597
- //# sourceMappingURL=chunk-DZQWSJNJ.mjs.map
5597
+ //# sourceMappingURL=chunk-7ZY7DP3Q.mjs.map