I'm having an error when using 0.8.18+ compiler version
I cant use 0.8.20+ due to some errors how can i use an older version of the erc20 contract from open zeppelin
I'm using the remix ide
I'm having an error when using 0.8.18+ compiler version
I cant use 0.8.20+ due to some errors how can i use an older version of the erc20 contract from open zeppelin
I'm using the remix ide
The most recent version of the library requires ^0.8.20
as of now. The alternative is to install the previous v4. You can do it in Remix by suffixing your imports with "@v4.9.3" (the latest v4) as in:
import "@openzeppelin/contracts@v4.9.3/access/Ownable.sol";
So why not handle these errors instead of trying to switch back to an older version, and ending up with a bunch of other errors?
+1
@Aarav You can post the errors here, it's better to solve them and go with the default version.
to other comments. If you can solve the issues and move to 0.8.20, you should.
I'd suggest using 4.9.3 only when strictly needed from now on unless you already have a project with a version dependency tied to 4.x