From 4cb7c1887aaea4423b6824284eaec902a1da64ac Mon Sep 17 00:00:00 2001 From: Agost Biro Date: Fri, 18 Oct 2024 11:41:55 +0000 Subject: [PATCH] fix: bump EDR to 0.6.4 --- .changeset/stupid-paws-sort.md | 5 +++ packages/hardhat-core/package.json | 2 +- pnpm-lock.yaml | 66 +++++++++++++++--------------- 3 files changed, 39 insertions(+), 34 deletions(-) create mode 100644 .changeset/stupid-paws-sort.md diff --git a/.changeset/stupid-paws-sort.md b/.changeset/stupid-paws-sort.md new file mode 100644 index 0000000000..1260a0c69d --- /dev/null +++ b/.changeset/stupid-paws-sort.md @@ -0,0 +1,5 @@ +--- +"hardhat": patch +--- + +Fixed error due to remote nodes not returning total difficulty by adding fallback value diff --git a/packages/hardhat-core/package.json b/packages/hardhat-core/package.json index 3e482dcc18..996590f86f 100644 --- a/packages/hardhat-core/package.json +++ b/packages/hardhat-core/package.json @@ -102,7 +102,7 @@ "dependencies": { "@ethersproject/abi": "^5.1.2", "@metamask/eth-sig-util": "^4.0.0", - "@nomicfoundation/edr": "^0.6.3", + "@nomicfoundation/edr": "^0.6.4", "@nomicfoundation/ethereumjs-common": "4.0.4", "@nomicfoundation/ethereumjs-tx": "5.0.4", "@nomicfoundation/ethereumjs-util": "9.0.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1f08d525a4..5981d45b31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -201,8 +201,8 @@ importers: specifier: ^4.0.0 version: 4.0.1 '@nomicfoundation/edr': - specifier: ^0.6.3 - version: 0.6.3 + specifier: ^0.6.4 + version: 0.6.4 '@nomicfoundation/ethereumjs-common': specifier: 4.0.4 version: 4.0.4 @@ -2335,36 +2335,36 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@nomicfoundation/edr-darwin-arm64@0.6.3': - resolution: {integrity: sha512-hqtI7tYDqKG5PDmZ//Z65EH5cgH8VL/SAAu50rpHP7WAVfJWkOCcYbecywwF6nhHdonJbRTDGAeG1/+VOy6zew==} + '@nomicfoundation/edr-darwin-arm64@0.6.4': + resolution: {integrity: sha512-QNQErISLgssV9+qia8sIjRANqtbW8snSDvjspixT/kSQ5ZSGxxctTg7x72wPSrcu8+EBEveIe5uqENIp5GH8HQ==} engines: {node: '>= 18'} - '@nomicfoundation/edr-darwin-x64@0.6.3': - resolution: {integrity: sha512-4fGi79/lyOlRUORhCYsYb3sWqRHuHT7qqzyZfZuNOn8llaxmT1k36xNmvpyg37R8SzjnhT/DzoukSJrs23Ip9Q==} + '@nomicfoundation/edr-darwin-x64@0.6.4': + resolution: {integrity: sha512-cjVmREiwByyc9+oGfvAh49IAw+oVJHF9WWYRD+Tm/ZlSpnEVWxrGNBak2bd/JSYjn+mZE7gmWS4SMRi4nKaLUg==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-arm64-gnu@0.6.3': - resolution: {integrity: sha512-yFFTvGFMhfAvQ1Z2itUh1jpoUA+mVROyVELcaxjIq8fyg602lQmbS+NXkhQ+oaeDgJ+06mSENrHBg4fcfRf9cw==} + '@nomicfoundation/edr-linux-arm64-gnu@0.6.4': + resolution: {integrity: sha512-96o9kRIVD6W5VkgKvUOGpWyUGInVQ5BRlME2Fa36YoNsRQMaKtmYJEU0ACosYES6ZTpYC8U5sjMulvPtVoEfOA==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-arm64-musl@0.6.3': - resolution: {integrity: sha512-pOKmd0Fa3a6BHg5qbjbl/jMRELVi9oazbfiuU7Bvgn/dpTK+ID3jwT0SXiuC2zxjmPByWgXL6G9XRf5BPAM2rQ==} + '@nomicfoundation/edr-linux-arm64-musl@0.6.4': + resolution: {integrity: sha512-+JVEW9e5plHrUfQlSgkEj/UONrIU6rADTEk+Yp9pbe+mzNkJdfJYhs5JYiLQRP4OjxH4QOrXI97bKU6FcEbt5Q==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-x64-gnu@0.6.3': - resolution: {integrity: sha512-3AUferhkLIXtLV63w5GjpHttzdxZ36i656XMy+pkBZbbiqnzIVeKWg6DJv1A94fQY16gB4gqj9CLq4CWvbNN6w==} + '@nomicfoundation/edr-linux-x64-gnu@0.6.4': + resolution: {integrity: sha512-nzYWW+fO3EZItOeP4CrdMgDXfaGBIBkKg0Y/7ySpUxLqzut40O4Mb0/+quqLAFkacUSWMlFp8nsmypJfOH5zoA==} engines: {node: '>= 18'} - '@nomicfoundation/edr-linux-x64-musl@0.6.3': - resolution: {integrity: sha512-fr6bD872WIBXe9YnTDi0CzYepMcYRgSnkVqn0yK4wRnIvKrloWhxXNVY45GVIl51aNZguBnvoA4WEt6HIazs3A==} + '@nomicfoundation/edr-linux-x64-musl@0.6.4': + resolution: {integrity: sha512-QFRoE9qSQ2boRrVeQ1HdzU+XN7NUgwZ1SIy5DQt4d7jCP+5qTNsq8LBNcqhRBOATgO63nsweNUhxX/Suj5r1Sw==} engines: {node: '>= 18'} - '@nomicfoundation/edr-win32-x64-msvc@0.6.3': - resolution: {integrity: sha512-sn34MvN1ajw2Oq1+Drpxej78Z0HfIzI4p4WlolupAV9dOZKzp2JAIQeLVfZpjIFbF3zuyxLPP4dUBrQoFPEqhA==} + '@nomicfoundation/edr-win32-x64-msvc@0.6.4': + resolution: {integrity: sha512-2yopjelNkkCvIjUgBGhrn153IBPLwnsDeNiq6oA0WkeM8tGmQi4td+PGi9jAriUDAkc59Yoi2q9hYA6efiY7Zw==} engines: {node: '>= 18'} - '@nomicfoundation/edr@0.6.3': - resolution: {integrity: sha512-hThe5ORR75WFYTXKL0K2AyLDxkTMrG+VQ1yL9BhQYsuh3OIH+3yNDxMz2LjfvrpOrMmJ4kk5NKdFewpqDojjXQ==} + '@nomicfoundation/edr@0.6.4': + resolution: {integrity: sha512-YgrSuT3yo5ZQkbvBGqQ7hG+RDvz3YygSkddg4tb1Z0Y6pLXFzwrcEwWaJCFAVeeZxdxGfCgGMUYgRVneK+WXkw==} engines: {node: '>= 18'} '@nomicfoundation/ethereumjs-block@5.0.4': @@ -8195,29 +8195,29 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@nomicfoundation/edr-darwin-arm64@0.6.3': {} + '@nomicfoundation/edr-darwin-arm64@0.6.4': {} - '@nomicfoundation/edr-darwin-x64@0.6.3': {} + '@nomicfoundation/edr-darwin-x64@0.6.4': {} - '@nomicfoundation/edr-linux-arm64-gnu@0.6.3': {} + '@nomicfoundation/edr-linux-arm64-gnu@0.6.4': {} - '@nomicfoundation/edr-linux-arm64-musl@0.6.3': {} + '@nomicfoundation/edr-linux-arm64-musl@0.6.4': {} - '@nomicfoundation/edr-linux-x64-gnu@0.6.3': {} + '@nomicfoundation/edr-linux-x64-gnu@0.6.4': {} - '@nomicfoundation/edr-linux-x64-musl@0.6.3': {} + '@nomicfoundation/edr-linux-x64-musl@0.6.4': {} - '@nomicfoundation/edr-win32-x64-msvc@0.6.3': {} + '@nomicfoundation/edr-win32-x64-msvc@0.6.4': {} - '@nomicfoundation/edr@0.6.3': + '@nomicfoundation/edr@0.6.4': dependencies: - '@nomicfoundation/edr-darwin-arm64': 0.6.3 - '@nomicfoundation/edr-darwin-x64': 0.6.3 - '@nomicfoundation/edr-linux-arm64-gnu': 0.6.3 - '@nomicfoundation/edr-linux-arm64-musl': 0.6.3 - '@nomicfoundation/edr-linux-x64-gnu': 0.6.3 - '@nomicfoundation/edr-linux-x64-musl': 0.6.3 - '@nomicfoundation/edr-win32-x64-msvc': 0.6.3 + '@nomicfoundation/edr-darwin-arm64': 0.6.4 + '@nomicfoundation/edr-darwin-x64': 0.6.4 + '@nomicfoundation/edr-linux-arm64-gnu': 0.6.4 + '@nomicfoundation/edr-linux-arm64-musl': 0.6.4 + '@nomicfoundation/edr-linux-x64-gnu': 0.6.4 + '@nomicfoundation/edr-linux-x64-musl': 0.6.4 + '@nomicfoundation/edr-win32-x64-msvc': 0.6.4 '@nomicfoundation/ethereumjs-block@5.0.4': dependencies: