diff --git a/.changeset/hardhat-ledger-zod-utils-floor.md b/.changeset/hardhat-ledger-zod-utils-floor.md new file mode 100644 index 00000000000..75d905d2caf --- /dev/null +++ b/.changeset/hardhat-ledger-zod-utils-floor.md @@ -0,0 +1,5 @@ +--- +"@nomicfoundation/hardhat-ledger": patch +--- + +Fixed `data: "0x"` being parsed as one zero byte when an older `@nomicfoundation/hardhat-zod-utils` was installed, by requiring 3.0.9 or later ([#8790](https://github.com/NomicFoundation/hardhat/issues/8790)). diff --git a/.changeset/hardhat-zod-utils-floor.md b/.changeset/hardhat-zod-utils-floor.md new file mode 100644 index 00000000000..f36f44feafd --- /dev/null +++ b/.changeset/hardhat-zod-utils-floor.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed local accounts signing `"0x"` data and messages as the byte `0x00` when an older `@nomicfoundation/hardhat-zod-utils` was installed ([#8790](https://github.com/NomicFoundation/hardhat/issues/8790)). diff --git a/packages/hardhat-ledger/package.json b/packages/hardhat-ledger/package.json index 3c5193a8556..e64d7a5c949 100644 --- a/packages/hardhat-ledger/package.json +++ b/packages/hardhat-ledger/package.json @@ -66,7 +66,7 @@ "@ledgerhq/types-live": "^6.85.0", "@nomicfoundation/hardhat-errors": "workspace:^3.0.15", "@nomicfoundation/hardhat-utils": "workspace:^5.0.0", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.5", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.9", "micro-eth-signer": "^0.14.0", "node-gyp": "^12.1.0", "zod": "^3.23.8" diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index 6ff65b869d3..0fae935dd85 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -97,9 +97,9 @@ "dependencies": { "@nomicfoundation/edr": "0.25.1", "@nomicfoundation/hardhat-errors": "workspace:^3.1.3", - "@nomicfoundation/hardhat-utils": "workspace:^5.1.0", + "@nomicfoundation/hardhat-utils": "workspace:^5.1.1", "@nomicfoundation/hardhat-vendored": "workspace:^3.0.4", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.5", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.9", "@nomicfoundation/solidity-analyzer": "^0.1.1", "@sentry/core": "^9.4.0", "adm-zip": "^0.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e40becacf64..97718a1674e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -335,13 +335,13 @@ importers: specifier: workspace:^3.1.3 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^5.1.0 + specifier: workspace:^5.1.1 version: link:../hardhat-utils '@nomicfoundation/hardhat-vendored': specifier: workspace:^3.0.4 version: link:../hardhat-vendored '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.5 + specifier: workspace:^3.0.9 version: link:../hardhat-zod-utils '@nomicfoundation/solidity-analyzer': specifier: ^0.1.1 @@ -917,7 +917,7 @@ importers: specifier: workspace:^5.0.0 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.5 + specifier: workspace:^3.0.9 version: link:../hardhat-zod-utils micro-eth-signer: specifier: ^0.14.0