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.
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/chains.js +63 -63
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-TO4LQVPW.js → chunk-6IWXWJ63.js} +4 -4
- package/dist/chunk-6IWXWJ63.js.map +1 -0
- package/dist/{chunk-DZQWSJNJ.mjs → chunk-7ZY7DP3Q.mjs} +4 -4
- package/dist/chunk-7ZY7DP3Q.mjs.map +1 -0
- package/dist/{chunk-QQ7PCGDW.mjs → chunk-G6NIG3BP.mjs} +2 -2
- package/dist/{chunk-CVKFUFQP.js → chunk-ZUEZUV4P.js} +19 -19
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/ethers.js +3 -3
- package/dist/ethers.mjs +1 -1
- package/dist/index.js +91 -91
- package/dist/index.mjs +2 -2
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-DZQWSJNJ.mjs.map +0 -1
- package/dist/chunk-TO4LQVPW.js.map +0 -1
- /package/dist/{chunk-QQ7PCGDW.mjs.map → chunk-G6NIG3BP.mjs.map} +0 -0
- /package/dist/{chunk-CVKFUFQP.js.map → chunk-ZUEZUV4P.js.map} +0 -0
@@ -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.
|
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:
|
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-
|
5597
|
+
//# sourceMappingURL=chunk-7ZY7DP3Q.mjs.map
|