Skip to content

Commit

Permalink
Upgrade the viem toolbox and project creation to viem@2
Browse files Browse the repository at this point in the history
  • Loading branch information
schaable authored and kanej committed Mar 8, 2024
1 parent ac155d6 commit 3c9f582
Show file tree
Hide file tree
Showing 4 changed files with 2,379 additions and 2,297 deletions.
6 changes: 6 additions & 0 deletions .changeset/silver-waves-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@nomicfoundation/hardhat-toolbox-viem": major
"hardhat": patch
---

Upgraded hardhat-toolbox-viem and project creation to support viem@2
6 changes: 3 additions & 3 deletions packages/hardhat-core/src/internal/cli/project-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ETHERS_PROJECT_DEPENDENCIES: Dependencies = {
};

const VIEM_PROJECT_DEPENDENCIES: Dependencies = {
"@nomicfoundation/hardhat-toolbox-viem": "^2.0.0",
"@nomicfoundation/hardhat-toolbox-viem": "^3.0.0",
};

const PEER_DEPENDENCIES: Dependencies = {
Expand All @@ -68,8 +68,8 @@ const ETHERS_PEER_DEPENDENCIES: Dependencies = {
};

const VIEM_PEER_DEPENDENCIES: Dependencies = {
"@nomicfoundation/hardhat-viem": "^1.0.0",
viem: "^1.15.1",
"@nomicfoundation/hardhat-viem": "^2.0.0",
viem: "^2.7.6",
};

const TYPESCRIPT_DEPENDENCIES: Dependencies = {};
Expand Down
6 changes: 3 additions & 3 deletions packages/hardhat-toolbox-viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@
"solidity-coverage": "^0.8.1",
"ts-node": "^10.8.0",
"typescript": "~5.0.4",
"viem": "^1.15.1"
"viem": "^2.7.6"
},
"peerDependencies": {
"@nomicfoundation/hardhat-network-helpers": "workspace:^1.0.0",
"@nomicfoundation/hardhat-verify": "workspace:^2.0.0",
"@nomicfoundation/hardhat-viem": "workspace:^1.0.0",
"@nomicfoundation/hardhat-viem": "workspace:^2.0.0",
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.6",
"@types/mocha": ">=9.1.0",
Expand All @@ -84,7 +84,7 @@
"solidity-coverage": "^0.8.1",
"ts-node": ">=8.0.0",
"typescript": "~5.0.4",
"viem": "^1.15.1"
"viem": "^2.7.6"
},
"bugs": {
"url": "https://github.com/nomicfoundation/hardhat/issues"
Expand Down
Loading

0 comments on commit 3c9f582

Please sign in to comment.