Hi, I am currently learning to implement smart contract upgradability and was going through this link. And based on the docs there, I have two queries,
- The command
npm install @openzeppelin/upgrades@2.4.0
seems to be outdated in Writing the exchange contract section as the console throws the following error,
npm ERR! notarget No matching version found for @openzeppelin/upgrades@2.4.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that does not exist.
But doing npm install @openzeppelin/upgrades@2.6.0
works fine.
- It’s mentioned in the docs to import the base initializable contract through
import "@openzeppelin/upgrades/contracts/Initializable.sol";
But in the version2.6.0
, there is no such contract named asInitializable.sol
. So which one to use in the newer version?
Thanks