Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,778 changes: 783 additions & 2,995 deletions contracts/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "2.0.0",
"description": "A collection of smart contracts used in the development of the Cosmos EVM blockchain.",
"devDependencies": {
"@openzeppelin/contracts": "^4.9.6",
"hardhat": "^2.22.2"
"@openzeppelin/contracts": "^5.4.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OpenZeppelin v5 removes ERC20PresetMinterPauser used by contracts

High Severity

Upgrading @openzeppelin/contracts from v4 to v5 breaks compilation. OpenZeppelin v5 removed the presets directory entirely — contracts at contracts/solidity/x/erc20/keeper/testdata/ERC20DirectBalanceManipulation.sol and ERC20MaliciousDelayed.sol directly import @openzeppelin/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol, which no longer exists in v5. Additionally, several contracts override _beforeTokenTransfer, which was replaced by _update in v5. These contracts will fail to compile.

Additional Locations (1)

Fix in Cursor Fix in Web

"hardhat": "^3.1.9"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hardhat 3 major upgrade breaks existing config format

High Severity

Upgrading hardhat from v2 to v3 is a breaking major version change. Hardhat 3 requires ESM config format, a different plugin system, and Node.js ≥ 20. The existing hardhat.config.js (CommonJS-style) will not work with Hardhat 3 without rewriting. No corresponding config file changes are included in this PR.

Additional Locations (1)

Fix in Cursor Fix in Web

},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Loading
Loading