Using OpenZeppelin Contracts that supports Solidity 0.8

I have a need to use solidity version ^0.8.0 for implementing string arrays as function arguments. On Github, I see that OpenZeppelin has released contracts that support v0.8.x. Running npm install --save openzeppelin-solidity imports an older version of OpenZeppelin contracts that do not support this solidity version. Are these 0.8.x contracts just not available on npm?

Thanks!

1 Like

Hi @tbwebb22,

Welcome to the community :wave:

OpenZeppelin Contracts 4.0 is currently a release candidate. See the Contracts 4.0 Timeline for when it will be released.

Install the release candidate from npm with npm install @openzeppelin/contracts@next

That worked! Thanks :+1:

1 Like