Error HH404: File @openzeppelin/contracts/utils/Counters.sol, imported from aaa.sol, not found.

Sdílet
Vložit
  • čas přidán 17. 10. 2023
  • When deploying your solidity smart contract, you might be visited by this error "Error HH404: File @openzeppelin/contracts/utils/Counters.sol, imported from contracts/Minter.sol, not found".
    Reason: You are using Openzeppelin version 5.0.0
    Solution1
    Manually write your counters. e.g.
    uint256 counter = counter + 1;
    Solution2
    Downgrade openzepellin from v5.0.0 to v4.9.3

Komentáře • 8