We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b06601b + abca5ab commit 93ed1c2Copy full SHA for 93ed1c2
.changeset/unlucky-pens-melt.md
@@ -0,0 +1,5 @@
1
+---
2
+"hardhat": patch
3
4
+
5
+Fixed the compiler download, which broke with the latest version of undici
packages/hardhat-core/src/internal/util/download.ts
@@ -48,7 +48,7 @@ export async function download(
48
});
49
50
if (response.statusCode >= 200 && response.statusCode <= 299) {
51
- const responseBody = await response.body.arrayBuffer();
+ const responseBody = Buffer.from(await response.body.arrayBuffer());
52
const tmpFilePath = resolveTempFileName(filePath);
53
await fsExtra.ensureDir(path.dirname(filePath));
54
0 commit comments