Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade hardhat #53

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Upgrade hardhat #53

merged 1 commit into from
Apr 22, 2024

Conversation

gartnera
Copy link
Member

Fixes this warning:

➜  template git:(main) ✗ yarn
yarn install v1.22.22
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @nomicfoundation/[email protected]" has incorrect peer dependency "hardhat@^2.17.2".
[4/4] Building fresh packages...
Done in 2.19s.

and this crash on debian 12 arm64, nodejs v20.12.2:

➜  template git:(main) ✗ npx hardhat compile --force --show-stack-traces
Downloading compiler 0.8.7
Error HH502: Couldn't download compiler version list. Please check your internet connection and try again.

HardhatError: HH502: Couldn't download compiler version list. Please check your internet connection and try again.
    at /home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:157:17
    at async CompilerDownloader.downloadCompiler (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:150:5)
    at async SimpleTaskDefinition.action (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/builtin-tasks/compile.ts:569:9)
    at async Environment._runTaskDefinition (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:333:14)
    at async Environment.run (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:166:14)
    at async SimpleTaskDefinition.action (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/builtin-tasks/compile.ts:692:36)
    at async Environment._runTaskDefinition (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:333:14)
    at async Environment.run (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:166:14)
    at async Environment._runTaskDefinition (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:333:14)
    at async Environment.run (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/core/runtime-environment.ts:166:14)

    Caused by: TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of ArrayBuffer
        at writeFile (node:fs:2285:5)
        at go$writeFile (/home/alex/workspace/github.com/zeta-chain/template/node_modules/graceful-fs/graceful-fs.js:138:14)
        at Object.writeFile (/home/alex/workspace/github.com/zeta-chain/template/node_modules/graceful-fs/graceful-fs.js:135:12)
        at /home/alex/workspace/github.com/zeta-chain/template/node_modules/universalify/index.js:13:12
        at new Promise (<anonymous>)
        at Object.writeFile (/home/alex/workspace/github.com/zeta-chain/template/node_modules/universalify/index.js:7:14)
        at CompilerDownloader.download [as _downloadFunction] (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/util/download.ts:55:19)
        at async CompilerDownloader._downloadCompilerList (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:280:5)
        at async /home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:155:11
        at async CompilerDownloader.downloadCompiler (/home/alex/workspace/github.com/zeta-chain/template/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:150:5)

@gartnera gartnera requested a review from fadeev April 18, 2024 19:07
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link
Member

@fadeev fadeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@gartnera gartnera merged commit 6b557f0 into main Apr 22, 2024
5 checks passed
@gartnera gartnera deleted the upgrade-hardhat branch April 22, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants